Exemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     try
     {
         _vehicleBusiness.Delete(id);
         return(Ok());
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }
Exemplo n.º 2
0
 public IActionResult Delete(long id)
 {
     _vehicleBusiness.Delete(id);
     return(NoContent());
 }
Exemplo n.º 3
0
 public ActionResult DeleteConfirmed(int id)
 {
     _vehicleBusiness.Delete(id);
     return(RedirectToAction("Index"));
 }