예제 #1
0
        public async Task <bool> Create(List <QuotaDataDto> quotas)
        {
            HttpResponseDto <bool> response = (HttpResponseDto <bool>)
                                              CallRestService.CallServiceAsync <HttpResponseDto <bool> >(
                _config.GetSection("AgentEndpoints:CreateQuotas").Value
                , quotas, Method.POST, false, false).Result;

            if (response == null)
            {
                return(false);
            }
            return(response.Object);
        }
예제 #2
0
        public async Task <InfoClientDto> GetInfoClient(long idClient)
        {
            HttpResponseDto <InfoClientDto> infoClientDto = (HttpResponseDto <InfoClientDto>)
                                                            CallRestService.CallServiceAsync <HttpResponseDto <InfoClientDto> >(
                string.Format(_config.GetSection("AgentEndpoints:GetInfoClient").Value, idClient)
                , null, Method.GET, "", false, false).Result;

            if (infoClientDto == null)
            {
                return(null);
            }
            return(infoClientDto.Object);
        }
예제 #3
0
        public async Task <IdScanResponse> Scan(IdScanRequest idScanRequest)
        {
            IdScanResponse response = (IdScanResponse)
                                      CallRestService.CallServiceAsync <IdScanResponse>(
                _config.GetSection("AgentEndpoints:IdScan").Value,
                idScanRequest, Method.POST, idScanRequest.id, false, false).Result;

            if (response == null)
            {
                return(null);
            }
            return(response);
        }
예제 #4
0
        public async Task <bool> GetInfoClient(ClientDebitCapitalDto clientDebitCapitalDto)
        {
            HttpResponseDto <bool> response = (HttpResponseDto <bool>)
                                              CallRestService.CallServiceAsync <HttpResponseDto <bool> >(
                _config.GetSection("AgentEndpoints:CreateQuotas").Value
                , clientDebitCapitalDto, Method.POST, false, false).Result;

            if (response == null)
            {
                return(false);
            }
            return(response.Object);
        }