public ActionResult Delete(int id) { VehicleModel vehicleModel = client.GetVehicleModelId(id); client.DeleteVehicleModel(vehicleModel); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { VehicleModel vehicleModel = client.GetVehicleModelId(id); client.DeleteVehicleModel(vehicleModel); return(RedirectToAction("Index")); }