public async Task <IActionResult> Add([FromBody] AuditDTO aspectStatesDTO)
 {
     return(new OkObjectResult(await _createAuditUseCase.Execute(_mapper.Map <AuditDTO, AuditWorkflowData>(aspectStatesDTO))));
 }
 public async Task <IActionResult> Delete([FromBody] AuditDTO deleteAuditDTO)
 {
     return(new OkObjectResult(await _deleteAuditUseCase.Execute(deleteAuditDTO.AuditID, deleteAuditDTO.WorkflowId)));
 }
 public async Task <IActionResult> Planning([FromBody] AuditDTO plannigAuditDTO)
 {
     return(new OkObjectResult(await _planningAuditUseCase.Execute(_mapper.Map <AuditDTO, AuditWorkflowData>(plannigAuditDTO))));
 }
 public async Task <IActionResult> EmitReport([FromBody] AuditDTO emitReportDTO)
 {
     return(new OkObjectResult(await _emitReportAuditUseCase.Execute(_mapper.Map <AuditDTO, AuditWorkflowData>(emitReportDTO))));
 }
 public IActionResult Update([FromBody] AuditDTO updateAuditDTO)
 {
     return(new OkObjectResult(_updateAuditUseCase.Execute(_mapper.Map <AuditDTO, Audit>(updateAuditDTO))));
 }