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