Esempio n. 1
0
 public ActionResult Delete(int id, bool?del)
 {
     if (client.DeleteCar(id))
     {
         ViewBag.message = "Car Nuked,Tesla overtook them";
     }
     else
     {
         ViewBag.message = "Could Not Sell this bagnole";
     }
     return(RedirectToAction("Cars"));
 }
Esempio n. 2
0
 public ActionResult Delete(int id, bool?del)
 {
     if (client.DeleteCar(id))
     {
         ViewBag.message = "Car bye";
     }
     else
     {
         ViewBag.message = "Car not bye";
     }
     return(RedirectToAction("Inventory"));
 }