Exemple #1
0
        public IActionResult AsignacionCajero(Cajero c)
        {
            if (ModelState.IsValid)
            {
                _context.Add(c);
                _context.SaveChanges();

                return(RedirectToAction("Administrador"));
            }
            return(View(c));
        }
Exemple #2
0
        public IActionResult IngresoProducto(Producto pr)
        {
            if (ModelState.IsValid)
            {
                _context.Add(pr);
                _context.SaveChanges();

                return(RedirectToAction("IngresoProducto"));
            }
            return(View(pr));
        }