コード例 #1
0
        public async Task <IActionResult> Create([Bind("Id,Name,Abrv")] VehicleMake vehicleMake)
        {
            if (ModelState.IsValid)
            {
                await DbContext.AddNewVehicleMake(vehicleMake);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(vehicleMake));
        }