public void Post([FromBody] JToken value) { var a = value.ToString(); CityReview review = new CityReview(); review.ReviewCategory = (string)value["ReviewCategory"]; review.ReviewItemID = (int)value["reviewItemID"]; review.ReviewRating = (string)value["reviewRating"]; review.ReviewText = (string)value["reviewText"]; ReviewsRepository repo = new ReviewsRepository(_logger); repo.addReview(review); _logger.LogInformation("Value added"); }