public override async Task <HttpResponseMessage> Post <T>(T data)
        {
            var price = new PriceHistoriesDTO();

            if (!ProductsDTO.ReferenceEquals(data.GetType(), price))
            {
                return(null);
            }
            price = (PriceHistoriesDTO)nameof(data).Clone();
            return(await PushPrice(price));
        }
 public async Task <HttpResponseMessage> PushPrice(PriceHistoriesDTO priceHistories)
 {
     return(await GetClient().PostAsJsonAsync("api/product/", priceHistories));
 }
 public Task <HttpResponseMessage> PushPrice(PriceHistoriesDTO product)
 {
     return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK)));
 }