public IActionResult Remove([FromRoute] int id) { Chamado chamado = _chamadoService.GetById(id); if (chamado == null) { return(NotFound()); } bool remove = _chamadoService.Remove(chamado); if (!remove) { return(NotFound()); } return(NoContent()); }
public IActionResult Remove([FromRoute] int id) { Chamado chamado = _chamadoService.GetById(id); if (chamado == null) { return(NotFound()); } bool remove = _chamadoService.Remove(chamado); if (!remove) { return(NotFound()); } return(NoContent()); }