Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="validaValeRequest"></param>
 /// <returns></returns>
 public ResponseBussiness <ValidaValeResult> ValidarVale(ValidaValeRequest validaValeRequest)
 {
     return(tryCatch.SafeExecutor(() =>
     {
         return ValidarValeInternal(validaValeRequest);
     }));
 }
Example #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);
        }
Example #3
0
        public ResponseBussiness <ValidaValeResult> ValidaVale(ValidaValeRequest validaValeRequest)
        {
            TokenDto token = new TokenService().Get();

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