public IActionResult Delete(string id) { try { var model = new ClienteExclusaoModel() { Id = id }; var result = clienteApplicationService.Delete(model); return(Ok(new { Message = "cliente excluído com sucesso.", cliente = result })); } catch (Exception e) { return(StatusCode(500, e.Message)); } }
public IHttpActionResult Delete(int id) { _appService.Delete(id); return(Ok()); }