Example #1
0
        public async Task <IActionResult> Create([Bind("UserName,Country,Rating,InfoAbout,isPremium,Id")] User user)
        {
            if (ModelState.IsValid)
            {
                _context.Add(user);
                await _context.SaveChangesAsync();

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