public IActionResult RemoverTipo(int id) { try { tipoRepository.RemoverTipo(id); return(Ok()); } catch (Exception ex) { return(BadRequest(new { Message = "Erro: " + ex.Message })); } }
public IActionResult RemoverTipo(int id) { try { tipoRepository.RemoverTipo(id); return(Ok()); } catch (Exception ex) { return(BadRequest(new { Message = "Erro: " + ex.Message })); } }