예제 #1
0
        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"));
            }
        }
예제 #2
0
        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));
        }
예제 #3
0
        public ActionResult GetUserPassword(string UserName)
        {
            var Getpassword = new LoggedUserBL().GetUserPassword(UserName);

            return(Json(Getpassword));
        }