public ActionResult UserLogin(string UserName, string Logged) { var LoggedUser = new LoggedUserBL().GetLoggedUser(UserName, Logged); if (LoggedUser == true) { return(RedirectToAction("Index", "Dashboard")); } else { return(RedirectToAction("Index", "UnauthorizedUser")); } }
public ActionResult CreateNewUser(string username, string Email, string Password) { var LoggedUser = new LoggedUserBL().CreateNewUser(username, Email, Password); string Message; if (LoggedUser == false) { Message = "User Created Successfully!"; } else { Message = "User name is enterd, enter another user name!"; } return(Json(Message)); }
public ActionResult GetUserPassword(string UserName) { var Getpassword = new LoggedUserBL().GetUserPassword(UserName); return(Json(Getpassword)); }