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); }
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); }
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); }
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); }