|
|
|
@ -113,7 +113,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return await Task.FromResult(Ok(apiResult));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public IActionResult Add(StudentVModel vm)
|
|
|
|
|
{
|
|
|
|
|
var apiResult = new ResultBase()
|
|
|
|
@ -146,7 +146,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return Ok(apiResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[ActionName("AddAsync")]
|
|
|
|
|
public async Task<IActionResult> AddAsync(StudentVModel vm)
|
|
|
|
|
{
|
|
|
|
@ -180,7 +180,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return await Task.FromResult(new JsonResult(apiResult));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public IActionResult Update(StudentVModel vm)
|
|
|
|
|
{
|
|
|
|
|
var apiResult = new ResultBase()
|
|
|
|
@ -213,7 +213,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return Ok(apiResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[ActionName("UpdateAsync")]
|
|
|
|
|
public async Task<IActionResult> UpdateAsync(StudentVModel vm)
|
|
|
|
|
{
|
|
|
|
@ -247,7 +247,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return await Task.FromResult(new JsonResult(apiResult));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
public IActionResult Delete(int studentId)
|
|
|
|
|
{
|
|
|
|
|
var apiResult = new ResultBase()
|
|
|
|
@ -273,7 +273,7 @@ namespace SwaggerStudy.Controllers
|
|
|
|
|
return Ok(apiResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[ActionName("DeleteAsync")]
|
|
|
|
|
public async Task<IActionResult> DeleteAsync(int studentId)
|
|
|
|
|
{
|
|
|
|
|