示例#1
0
        public ActionResult UserProfile(string fname, string lname, string pwd, string mail, string phone)
        {
            string name   = Session["user"].ToString();
            string result = blayer_ob.UpdateProfile(fname, lname, pwd, mail, phone, name);

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