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)); }
public async Task <ApiResponse> UpdateOfferWithRetryAsync(OfferAto offer, int countRetry = 10) { return(await SendWithRetryAsync(offer, UpdateOfferAsync, countRetry)); }
public async Task <ApiResponse> AddOfferAsync(OfferAto offer) { using var response = await PostObjectAsync(BaseAddress + AddOfferPath, offer); return(await DeserializeAsync <ApiResponse>(response, SerializerSettings)); }