Esempio n. 1
0
        public ActionResult Index(AdminLoginModel a)
        {
            Administrator admin = administratorRepo.AdministratorLogin(a);

            if (admin != null)
            {
                Session["AdminId"] = admin.AdminId;
                return(RedirectToAction("Index", "Home"));
            }
            return(View(admin));
        }