public IActionResult EditType(VehicleType type) { if (ModelState.IsValid) { repo.Update(type); return(RedirectToAction("ViewVehicleTypes")); } return(View("EditType")); }
public IActionResult EditType(VehicleType type) { if (ModelState.IsValid) { repo.Update(type); return(RedirectToAction("ViewVehicleTypes")); } return(View("EditType")); }