public ActionResult Delete([FromBody] ClientDto clientDto) { try { if (clientDto == null) { return(NotFound()); } applicationServiceClient.Remove(clientDto); return(Ok()); } catch (Exception) { throw; } }
public ActionResult Delete([FromBody] ClientDTO clienteDTO) { try { if (clienteDTO == null) { return(NotFound()); } _applicationServiceClient.Remove(clienteDTO); return(Ok("Cliente Removido com sucesso!")); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> Delete(ClientDto model) { return(Ok(await _service.Remove(model))); }