示例#1
0
        public async Task <ForgotPasswordResponseModel> ForgotPassword(ForgotPasswordRequestModel forgotPasswordRequestModel)
        {
            ForgotPasswordRequestContract  forgotPasswordRequestContract  = _mapper.Map <ForgotPasswordRequestContract>(forgotPasswordRequestModel);
            ForgotPasswordResponseContract forgotPasswordResponseContract = await _LoginRepository.ForgotPassword(forgotPasswordRequestContract);

            return(_mapper.Map <ForgotPasswordResponseModel>(forgotPasswordResponseContract));
        }
示例#2
0
        public async Task <ForgotPasswordResponseContract> ForgotPassword(ForgotPasswordRequestContract forgotPasswordRequestContract)
        {
            string urlRelative = GlobalConfig.API + "/RecoveryPassword";
            ForgotPasswordResponseContract forgotPasswordResponseContract;

            using (var client = new ApiClient(GlobalConfig.BASE_URL, _networkDependency, _preferences))
            {
                forgotPasswordResponseContract = await client.POSTAsync <ForgotPasswordResponseContract>(urlRelative, forgotPasswordRequestContract, false);
            }

            //JDP (Marzo, 2019) Se solicita parametros de salida en minuscula y sin acentos. (Cajeros Exito)
            if (forgotPasswordResponseContract != null)
            {
                if (forgotPasswordResponseContract.Descripcion != null)
                {
                    forgotPasswordResponseContract.Descripcion = RemoveAccents(forgotPasswordResponseContract.Descripcion);
                }
            }

            return(forgotPasswordResponseContract);
        }