|
@@ -75,9 +75,9 @@ namespace MTWorkHR.API.Controllers
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
[Consumes("multipart/form-data")]
|
|
|
[AppAuthorize(Permissions = "UserTask.Update")]
|
|
|
- public async Task UpdateAttachment([FromForm] AttachmentDto input)
|
|
|
+ public async Task<ActionResult<AttachmentDto>> UpdateAttachment([FromForm] AttachmentDto input)
|
|
|
{
|
|
|
- await _attachmentService.Update(input);
|
|
|
+ return await _attachmentService.Update(input);
|
|
|
}
|
|
|
|
|
|
[HttpDelete("DeleteAttachment")]
|
|
@@ -102,9 +102,9 @@ namespace MTWorkHR.API.Controllers
|
|
|
[HttpPost("UpdateTaskHistory")]
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
[AppAuthorize(Permissions = "UserTask.Update")]
|
|
|
- public async Task UpdateTaskHistory([FromBody] UserTaskHistoryDto input)
|
|
|
+ public async Task<ActionResult<UserTaskHistoryDto>> UpdateTaskHistory([FromBody] UserTaskHistoryDto input)
|
|
|
{
|
|
|
- await _taskHistoryService.Update(input);
|
|
|
+ return await _taskHistoryService.Update(input);
|
|
|
}
|
|
|
[HttpDelete("DeleteTaskHistory")]
|
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|