public async Task <ActionResult <ListResult <Rating> > > GetRatingsList([FromRoute(Name = "id")] Guid restaurantId, [FromQuery(Name = "page")] int pageIndex = 0, [FromQuery(Name = "size")] int itemsPerPage = 20) { var ratings = await ratingsService.GetAsync(restaurantId, pageIndex, itemsPerPage); return(ratings); }