Exemplo n.º 1
0
        public async Task <JsonResult> ResetPassword(ResetPasswordRequestJsonModel requestJsonModel)
        {
            var resetPasswordOperationResult = await _userProvider.ResetUserPasswordByToken(
                requestJsonModel.Token,
                requestJsonModel.Password);

            var responseJsonModel = _mapper.Map <ResetPasswordResponseJsonModel>(resetPasswordOperationResult);

            return(Json(responseJsonModel));
        }