//Put New Product Member public async Task <ReviewDto> PutReviewAsync(ReviewDto review) { var response = await _client.PutAsJsonAsync("reviews/" + review.Id, review); if (response.StatusCode == HttpStatusCode.NotFound) { return(null); } response.EnsureSuccessStatusCode(); return(await response.Content.ReadAsAsync <ReviewDto>()); }
Task <ReviewDto> IProductService.PutReviewAsync(ReviewDto review) { _reviews.Add(review); return(Task.FromResult(review)); }