public async Task <ApiResponse> AddProduct(ProductAto productAto) { using var response = await PostObjectAsync(BaseAddress + AddProductPath, productAto); var str = await response.Content.ReadAsStringAsync(); return(await DeserializeAsync <ApiResponse>(response, SerializerSettings)); }
public async Task <ApiResponse> UpdateProductWithRetryAsync(ProductAto productAto, int countRetry = 10) { return(await SendWithRetryAsync(productAto, UpdateProduct, countRetry)); }
public async Task <ApiResponse> UpdateProduct(ProductAto productAto) { using var response = await PostObjectAsync(BaseAddress + UpdateProductPath, productAto); return(await DeserializeAsync <ApiResponse>(response, SerializerSettings)); }