Beispiel #1
0
        public async Task <IActionResult> Create([Bind("CountryId,CountryCode,CountryName")] Country country)
        {
            if (ModelState.IsValid)
            {
                await _business.AddAsync(country);

                //await _context.SaveChangesAsync();
                return(RedirectToAction(nameof(Index)));
            }
            return(View(country));
        }