public ActionResult ResetPassword(ResetPassword model)
        {
            if (ModelState.IsValid)
            {
                if (WebSecurity.ResetPassword(model.Token, model.NewPassword))
                {
                    ViewBag.Success = "Your Password has been Changed,you may proceed to LOGIN";
                    return View("ResetPassword");
                }
                else
                {
                    ModelState.AddModelError("", "Token your using might get expired..");
                }
            }

            return View(model);
        }
        public ActionResult ResetPassword(ResetPassword model)
        {
            //if (model.token == null || model.NewPassword == null || model.ConfirmPassword == null)
            //{
            //    ModelState.AddModelError("", "All fileds are required");
            //}
            //else
            //{
            if (WebSecurity.ResetPassword(model.token, model.NewPassword))
            {
                ViewBag.Success = "Your Password has been Changed,you may allowed to login newly generated password.";
                return View(model);
            }
            else
            {
                ModelState.AddModelError("", "password change failed");
            }

            //}
            return View(model);
        }