Esempio n. 1
0
        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));
        }