Exemple #1
0
        public async Task <IActionResult> Create([Bind("ModelId,MakeId,ModelName")] Model model)
        {
            if (ModelState.IsValid)
            {
                await _billService.AddModelAsync(model);

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