public async Task <IActionResult> ResetPassword(UserRessetPasswordModel userRessetPasswordModel)
        {
            if (!ModelState.IsValid)
            {
                ModelState.AddModelError("", "New password is not valid");
                return(View());
            }

            var user = await _userManager.FindByIdAsync(userRessetPasswordModel.UserId);

            if (user == null)
            {
                ModelState.AddModelError("", "User  not fount");
                return(View());
            }

            var codeDecodedBytes = WebEncoders.Base64UrlDecode(userRessetPasswordModel.Token);
            var codeDecoded      = Encoding.UTF8.GetString(codeDecodedBytes);

            var result = await _userManager.ResetPasswordAsync(user, codeDecoded, userRessetPasswordModel.Password);

            if (!result.Succeeded)
            {
                foreach (var error in result.Errors)
                {
                    ModelState.AddModelError("", error.Description);
                }

                return(View(userRessetPasswordModel));
            }

            return(RedirectToAction("Index", "Home"));
        }
        //User Password Reset section Start
        public IActionResult ResetPassword(string token, string userId)
        {
            var model = new UserRessetPasswordModel
            {
                Token  = token,
                UserId = userId
            };

            return(View(model));
        }