Пример #1
0
 public Task <QueryResult <ReviewTableOfContentItem> > GetTableOfContentAsync(int containerId, [FromUri] Pagination pagination, int?revisionId = int.MaxValue)
 {
     pagination.Validate();
     pagination.SetDefaultValues(0, 50);
     if (revisionId == null)
     {
         throw new BadRequestException(nameof(revisionId) + " cannot be null.", ErrorCodes.InvalidParameter);
     }
     return(_sqlReviewsRepository.GetReviewTableOfContent(containerId, revisionId.Value, Session.UserId, pagination));
 }