Example #1
0
 public IActionResult Negar(int id, [FromBody] Colaborador colaborador)
 {
     try
     {
         Carona carona = fachada.NegarCarona(id, colaborador);
         return(NoContent());
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }