Ejemplo n.º 1
0
        public ActionResult Login(AdminModel model)
        {
            var user = AdminHandler.GetUser(model.EmailId, model.Password);

            if (user != null)
            {
                Session[Constants.AdminUserKeyName] = AdminUser.GetCurrentUser(user);
                return(RedirectToAction("Index", "Products", new { area = "Admin" }));
            }
            ViewBag.Message = "No Access!! Invalid User for this module";
            return(View());
        }