public async Task<IReadOnlyList<Review>> GetByCenterId(uint id, uint page, uint count)
{
return await _dbContext.Reviews
.Where(x => x.CenterId == id)
.OrderBy(x => x.CreatedAt)
.Skip((int)(page * count))
.Take((int)count)
.ToListAsync();
}
public async Task<IReadOnlyList<Review>> GetByCenterId(uint id, uint page, uint count)
{
return await _dbContext.Reviews
.Where(x => x.CenterId == id)
.OrderBy(x => x.CreatedAt)
.Skip((int)(page * count))
.Take((int)count)
.ToListAsync();
}