Пример #1
0
        public async Task <IActionResult> Create([Bind("IdUf,DescUf")] SisUf sisUf)
        {
            if (ModelState.IsValid)
            {
                _context.Add(sisUf);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(sisUf));
        }
        public async Task <IActionResult> Create([Bind("IdMarca,DescMarca,Usacadmat,Usacadveic,Ativo")] SisMarcas sisMarcas)
        {
            if (ModelState.IsValid)
            {
                _context.Add(sisMarcas);
                await _context.SaveChangesAsync();

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