Exemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("ID,Title,ReleaseDate,Genre,Price")] Auti auti)
        {
            if (ModelState.IsValid)
            {
                _context.Add(auti);
                await _context.SaveChangesAsync();

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