|
@@ -51,10 +51,10 @@ namespace MTWorkHR.API.Controllers
|
|
return await _userTaskService.Update(input);
|
|
return await _userTaskService.Update(input);
|
|
}
|
|
}
|
|
|
|
|
|
- [HttpPost("Delete")]
|
|
|
|
|
|
+ [HttpDelete("Delete")]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
|
|
|
|
- public async Task Delete(long id)
|
|
|
|
|
|
+ public async Task Delete([FromQuery] long id)
|
|
{
|
|
{
|
|
await _userTaskService.Delete(id);
|
|
await _userTaskService.Delete(id);
|
|
}
|
|
}
|
|
@@ -75,9 +75,9 @@ namespace MTWorkHR.API.Controllers
|
|
await _attachmentService.Update(input);
|
|
await _attachmentService.Update(input);
|
|
}
|
|
}
|
|
|
|
|
|
- [HttpPost("DeleteAttachment")]
|
|
|
|
|
|
+ [HttpDelete("DeleteAttachment")]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
- public async Task DeleteAttachment([FromBody] long id)
|
|
|
|
|
|
+ public async Task DeleteAttachment([FromQuery] long id)
|
|
{
|
|
{
|
|
await _attachmentService.Delete(id);
|
|
await _attachmentService.Delete(id);
|
|
}
|
|
}
|
|
@@ -98,9 +98,9 @@ namespace MTWorkHR.API.Controllers
|
|
{
|
|
{
|
|
await _taskHistoryService.Update(input);
|
|
await _taskHistoryService.Update(input);
|
|
}
|
|
}
|
|
- [HttpPost("DeleteTaskHistory")]
|
|
|
|
|
|
+ [HttpDelete("DeleteTaskHistory")]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
- public async Task DeleteTaskHistory([FromBody]long id)
|
|
|
|
|
|
+ public async Task DeleteTaskHistory([FromQuery]long id)
|
|
{
|
|
{
|
|
await _taskHistoryService.Delete(id);
|
|
await _taskHistoryService.Delete(id);
|
|
}
|
|
}
|