public ActionResult Create(VehicleModel vehicleModel) { if (ModelState.IsValid) { client.AddVehicleModel(vehicleModel); return(RedirectToAction("Index")); } return(View(vehicleModel)); }
public ActionResult Create(VehicleModel vehicleModel) { if (ModelState.IsValid) { client.AddVehicleModel(vehicleModel); return(RedirectToAction("Index")); } return(View(vehicleModel)); }