public ActionResult ChangePassword(ResetPasswordModel model)
        {
            if (ModelState.IsValid)
            {
                string name   = HttpContext.User.Identity.Name;
                var    result = AuthorizeService.ChangePassword(name, model.Password, model.NewPassword);

                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            return(Json(new CommandResult(ResultCode.Fail, "Thông tin chưa đúng"), JsonRequestBehavior.AllowGet));
        }
        public ActionResult ResetPassword(ResetPasswordModel model)
        {
            if (ModelState.IsValid)
            {
                string name   = HttpContext.User.Identity.Name;
                var    result = AuthorizeService.ChangePassword(name, model.Password, model.NewPassword);

                ViewBag.Message = result.Message;
            }
            return(View());
        }