Ejemplo n.º 1
0
        public async Task <ApiResponse> UpdateOfferAsync(OfferAto offer)
        {
            using var response = await PostObjectAsync(BaseAddress + UpdateOfferPath, offer);

            var str = await response.Content.ReadAsStringAsync();

            return(await DeserializeAsync <ApiResponse>(response, SerializerSettings));
        }
Ejemplo n.º 2
0
 public async Task <ApiResponse> UpdateOfferWithRetryAsync(OfferAto offer, int countRetry = 10)
 {
     return(await SendWithRetryAsync(offer, UpdateOfferAsync, countRetry));
 }
Ejemplo n.º 3
0
        public async Task <ApiResponse> AddOfferAsync(OfferAto offer)
        {
            using var response = await PostObjectAsync(BaseAddress + AddOfferPath, offer);

            return(await DeserializeAsync <ApiResponse>(response, SerializerSettings));
        }