Пример #1
0
        public async Task <IActionResult> Create([Bind("Id,TipoRoupa,Quantidade")] PecasRoupa pecasRoupa)
        {
            if (ModelState.IsValid)
            {
                _context.Add(pecasRoupa);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(pecasRoupa));
        }
        public async Task <IActionResult> Create([Bind("Id,Registro")] Confeccoes confeccoes)
        {
            if (ModelState.IsValid)
            {
                _context.Add(confeccoes);
                await _context.SaveChangesAsync();

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