public ActionResult ChangePassword(ChangePasswordModel model)
        {
            if (ModelState.IsValid)
            {
                var userName = User.Identity.Name;
                if (Membership.Provider.ChangePassword(userName, model.OldPassword, model.NewPassword))
                {
                    //success
                    return RedirectToAction("ChangePasswordSuccess");
                }
                else
                {
                    model = new ChangePasswordModel(); //reset model
                    ModelState.AddModelError("", "The current password is incorrect or the new password is invalid.");
                }
            }

            return View(model);
        }
 public ActionResult ChangePassword()
 {
     var model = new ChangePasswordModel();
     return View(model);
 }