public IActionResult Delete(int id) { try { var dica = _dicaRepository.BuscarPorId(id); if (dica == null) { return(NotFound()); } _dicaRepository.Remover(id); //Retorna Ok return(Ok(id)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }