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