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")); }
public ActionResult Delete(int id, bool?del) { if (client.DeleteCar(id)) { ViewBag.message = "Car bye"; } else { ViewBag.message = "Car not bye"; } return(RedirectToAction("Inventory")); }