Beispiel #1
0
 public IActionResult Bloquear(int id)
 {
     try
     {
         var carona = fachada.ObterCaronaPorId(id);
         carona.Bloquear();
         fachada.AtualizarCarona(carona, id);
         return(NoContent());
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }