public ActionResult LoginVend(Vendedor vend) { validBasic(vend.Dni, vend.Pass, vend); if (ModelState.IsValid) { Autenticador.Login(vend.Dni, false); return(RedirectToAction("Reportes", "Reporte")); } return(View(vend)); }
public ActionResult LoginAdmin(Administrador admin) { validBasic(admin.Dni, admin.Pass, admin); if (ModelState.IsValid) { Autenticador.Login(admin.Dni, false); return(RedirectToAction("Productos", "Producto")); } return(View(admin)); }