Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult Put([FromBody] Servico servico) { try { if (!_repo.Encontrar(servico)) { return(NoContent()); } _repo.Alterar(servico); return(Ok("Serviço alterado com sucesso!")); } catch (System.Exception) { return(StatusCode(500)); } }