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)); }
public bool CheckLogin(string U, string P) { return(employeeDAL.CheckLogin(U, P)); }