Exemple #1
0
        public ActionResult RegisterUSer(FormCollection FrmUserDetails)
        {
            User _user = new User();

            _user.Username = FrmUserDetails["username"];
            _user.Password = FrmUserDetails["confirm-password2"];
            _user.EmailID  = FrmUserDetails["email"];
            _user.Category = FrmUserDetails["Category"];
            if (User_Controller.UserRegister(_user))
            {
                TempData["AlertMessage"] = "Sucess";
                return(RedirectToAction("index", "Login"));
            }
            else
            {
                TempData["AlertMessage"] = "Exists";
                return(RedirectToAction("index", "Login"));
            }
        }