예제 #1
0
        public ActionResult SignIn(UserModel user)
        {
            UserAuthentication UA = new UserAuthentication();
            bool check            = UA.GetLogin(user);

            if (check)
            {
                System.Web.HttpContext.Current.Application.Lock();
                System.Web.HttpContext.Current.Application["UserIdentifier"] = user.UserType.ToString();
                System.Web.HttpContext.Current.Application.UnLock();
                return(RedirectToAction("GetAllEmpDetails", "Home"));
            }
            else
            {
                return(View());
            }
        }
        public void GetLoginFromCms()
        {
            var auth = new UserAuthentication();

            Login = auth.GetLogin(Sign);
        }