public IActionResult Delete([FromBody] CorrectiveActionDTO model)
 {
     _deleteCorrectiveActionUseCase.Execute(model.CorrectiveActionID);
     return(new OkObjectResult(model));
 }
 public async Task Add([FromBody] CorrectiveActionDTO model)
 {
     await _createCorrectiveActionUseCase.Execute(_mapper.Map <CorrectiveActionDTO, CorrectiveActionWorkflowData>(model));
 }
 public IActionResult Update([FromBody] CorrectiveActionDTO model)
 {
     return(new OkObjectResult(_updateCorrectiveActionUseCase.Execute(_mapper.Map <CorrectiveActionDTO, CorrectiveAction>(model))));
 }
 public IActionResult UpdateACReassign([FromBody] CorrectiveActionDTO model)
 {
     return(new OkObjectResult(_requestReassignACUseCase.Execute(_mapper.Map <CorrectiveActionDTO, CorrectiveAction>(model))));
 }