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