예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="validaValeRequest"></param>
 /// <returns></returns>
 public ResponseBussiness <ValidaValeResult> ValidarVale(ValidaValeRequest validaValeRequest)
 {
     return(tryCatch.SafeExecutor(() =>
     {
         return ValidarValeInternal(validaValeRequest);
     }));
 }
예제 #2
0
        private ValidaValeResult ValidarValeInternal(ValidaValeRequest validaValeRequest)
        {
            ValidaValeResult validaValeResult    = new ValidaValeResult();
            DataTable        tablaRespuestaProxy = proxy.ValidaVale(validaValeRequest.IdDistribuidora, validaValeRequest.FolioVale, validaValeRequest.Monto, infoService.UserName, infoService.Password);

            validaValeResult = test(tablaRespuestaProxy).FirstOrDefault();
            if (String.IsNullOrEmpty(validaValeResult.Nombre))
            {
                validaValeResult.EstatusCliente = false;
            }
            else
            {
                validaValeResult.EstatusCliente    = true;
                validaValeResult.DescripcionCodigo = validaValeResult.DescripcionCodigo;
                validaValeResult.NumeroCodigo      = validaValeResult.NumeroCodigo;
            }
            return(validaValeResult);
        }
예제 #3
0
        public ResponseBussiness <ValidaValeResult> ValidaVale(ValidaValeRequest validaValeRequest)
        {
            TokenDto token = new TokenService().Get();

            return(new FinlagBusiness(token).ValidarVale(validaValeRequest));
        }