public ActionResult PasswordReset(PasswordResetModel password)
 {
     if (ModelState.IsValid)
     {
         if (!string.IsNullOrEmpty(password.ResetToken))
         {
             BUserProfile bUserProfile=new BUserProfile();
             UserProfile uProfile = bUserProfile.GetSingle(password.Email);
             if (uProfile != null)
             {
                 ;
                 if (WebSecurity.ResetPassword(password.ResetToken, password.NewPassword))
                 {
                     return RedirectToAction("PasswordReset", "Account", new { sent = "1" });
                 }
                 else
                 {
                     return RedirectToAction("PasswordReset", "Account", new { sent = "-1" });
                 }
             }
         }
     }
     return View(password);
 }
        public ActionResult PasswordReset()
        {
            if (Request.QueryString["reset-id"] != null)
            {
                PasswordResetModel psModel=new PasswordResetModel();
                psModel.ResetToken = Request.QueryString["reset-id"].ToString();
                return View(psModel);
            }

            return View();
        }