예제 #1
0
        public ActionResult Index(UserDATA data)
        {
            ViewBag.Title = "Login to WorkFlow";
            ViewBag.Head  = "Welcome";

            EmployeeDAL dal = new EmployeeDAL();

            bool checkLogin = dal.CheckLogin(data.USERID, data.PASSWORD);

            if (checkLogin == true)
            {
                TempData["usernameTemp"] = data.USERID;

                Session["userid"] = data.USERID;

                return(RedirectToAction("Index", "WF"));
            }
            else
            {
                data.USERID   = "Please input Username";
                data.PASSWORD = "******";
            }

            return(View(data));
        }
예제 #2
0
 public bool CheckLogin(string U, string P)
 {
     return(employeeDAL.CheckLogin(U, P));
 }