แก้ไขหน้า ปรับเลื่อนเงินเดือน และปรับโควต้า

This commit is contained in:
Nakorn Rientrakrunchai
2020-02-28 13:09:50 +07:00
parent d9ca4b0aed
commit 1ca6d4955d
43 changed files with 2854 additions and 372 deletions

View File

@@ -271,47 +271,7 @@ namespace TodoAPI2.Controllers
return BadRequest(ModelState);
}
/// <summary>
/// ReCreatePostponementDetailNormal
/// </summary>
/// <remarks>
/// </remarks>
/// <param name="adjust_postponement_id"></param>
/// <returns>Response Result Message</returns>
/// <response code="200">Response Result Message</response>
/// <response code="400">If the model is invalid</response>
/// <response code="500">Error Occurred</response>
[HttpPut("ReCreatePostponementDetailNormal")]
[ProducesResponseType(typeof(CommonResponseMessage), 200)]
[ProducesResponseType(400)]
[ProducesResponseType(500)]
//[ValidateAntiForgeryToken]
public IActionResult ReCreatePostponementDetailNormal(int? adjust_postponement_id)
{
if (ModelState.IsValid)
{
try
{
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized();
var result = _repository.ReCreatePostponementDetailNormal(adjust_postponement_id);
string rowCount = _repository.ReCreatePostponementDetailNormal(adjust_postponement_id);
var message = new CommonResponseMessage();
message.code = "200";
message.message = "ปรับปรุงข้อมูลเรียบร้อย จำนวน " + rowCount + " รายการ";
message.data = null;
return Ok(message);
}
catch (Exception ex)
{
_logger.LogCritical($"Exception while ReCreatePostponementDetailNormal.", ex);
return StatusCode(500, $"Exception while ReCreatePostponementDetailNormal. {ex.Message}");
}
}
return BadRequest(ModelState);
}
/// <summary>
/// Delete item
/// </summary>