示例#1
0
 public ActionResult ChangePassword(FormCollection f)
 {
     ViewBag.Password = p.ChangePassword(Session["ID"].ToString(), f[0], f[1], f[2]);
     if (ViewBag.Password == "OK")
     {
         return(RedirectToAction("Profile"));
     }
     else
     {
         return(View("ChangePassword", "MasterView", ViewBag.Password));
     }
 }