Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }