Пример #1
0
        private async Task <string> GetReview()
        {
            var reviews = await _reviewRepository.Get();

            return(JsonConvert.SerializeObject(reviews));
        }
Пример #2
0
 public IActionResult GetRange(int startIndex, int reviewsToTake)
 {
     return(Ok(_reviewsRepository.Get(startIndex, reviewsToTake)));
 }