Пример #1
0
        public ActionResult Register(string firstname, string lastname, string username, string password, string gender, string email, string phno)
        {
            firstname = Request["fname"];
            lastname  = Request["lname"];
            username  = Request["uname"];
            password  = Request["password"];
            gender    = Request["radiochoice"];
            email     = Request["email"];
            phno      = Request["phno"];
            string result = blayer_ob.register(firstname, lastname, username, password, gender, email, phno, 0);

            if (result == "Success")
            {
                return(RedirectToAction("login"));
            }
            else
            {
                ViewBag.Message = result;
                return(View());
            }
        }