public override async Task <HttpResponseMessage> Post <T>(T data) { var ProductRequest = new ProductRequestDTO(); if (!ProductRequestDTO.ReferenceEquals(data.GetType(), ProductRequest)) { return(null); } ProductRequest = (ProductRequestDTO)nameof(data).Clone(); return(await PushProductRequest(ProductRequest)); }
public Task <HttpResponseMessage> PushProductRequest(ProductRequestDTO productRequest) { return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK))); }
public async Task <HttpResponseMessage> PushProductRequest(ProductRequestDTO productRequest) { return(await GetClient().PostAsJsonAsync("api/productrequest/", productRequest)); }