public async Task <IActionResult> Create([Bind("Id,Name,Abrv")] VehicleMake vehicleMake) { if (ModelState.IsValid) { await context.AddNew(vehicleMake); return(RedirectToAction(nameof(Index))); } return(View(vehicleMake)); }
public async Task <IActionResult> Create([Bind("Id,Name,Abrv")] VehicleMake vehicleMake) { if (ModelState.IsValid) { await context.AddNew(vehicleMake); return(RedirectToAction(nameof(Index))); } return(View(vehicleMake)); }