public ActionResult Create([Bind(Include = "ID,VehicleName,VehicleAbbreviation")] VehicleMake vehicleMake) { if (ModelState.IsValid) { vehicleService.CreateVehicleMake(vehicleMake); return(RedirectToAction("Index")); } return(View(vehicleMake)); }
public ActionResult Create([Bind(Include = "ID,Name,Abrv")] MakeView makeV) { if (ModelState.IsValid) { vehicleService.CreateVehicleMake(makeV); return(RedirectToAction("Index")); } return(View(makeV)); }
public ActionResult Create([Bind(Include = "Id,Name,Abrv")] VehicleMakeViewModel vehicleMakeView) { vehicleMakeView.Id = Guid.NewGuid(); if (ModelState.IsValid) { vehicleService.CreateVehicleMake(vehicleMakeView); return(RedirectToAction("Index")); } return(View(vehicleMakeView)); }