public IActionResult AsignacionCajero(Cajero c) { if (ModelState.IsValid) { _context.Add(c); _context.SaveChanges(); return(RedirectToAction("Administrador")); } return(View(c)); }
public IActionResult IngresoProducto(Producto pr) { if (ModelState.IsValid) { _context.Add(pr); _context.SaveChanges(); return(RedirectToAction("IngresoProducto")); } return(View(pr)); }