예제 #1
0
 public PageResult(PageFilter pageFilter, IEnumerable <T> value, uint totalCount)
 {
     _value     = value?.ToList();
     PageFilter = pageFilter;
     TotalCount = totalCount;
     Validator
     .Begin(_value, nameof(_value))
     .NotNull()
     .Map(PageFilter, nameof(PageFilter))
     .NotDefault()
     .ThrowApiException(nameof(PageResult <T>), nameof(PageResult <T>));
 }
예제 #2
0
 public bool Equals(PageFilter other)
 {
     return(Skip == other.Skip && Take == other.Take);
 }