public UserBusinessListSpecification(BaseSpecParams specParams, string userId)
     : base(b => b.OwnerId == userId && b.BusinessStatus == BusinessStatus.Confirmed)
 {
     ApplyPaging(specParams.PageSize * (specParams.PageIndex - 1), specParams.PageSize);
 }
Пример #2
0
 public ListAllVacanciesSpecification(BaseSpecParams tableParams)
 {
     AddInclude(v => v.Business);
     ApplyPaging(tableParams.PageSize * (tableParams.PageIndex - 1), tableParams.PageSize);
 }
 public UserAppartamentSpecification(BaseSpecParams baseParams, string userId)
     : base(a => a.UserId == userId)
 {
     AddInclude(a => a.Appartament);
     ApplyPaging(baseParams.PageSize * (baseParams.PageIndex - 1), baseParams.PageSize);
 }
 public UserFriendsForPoliceSpecification(BaseSpecParams baseParams, string userId)
     : base(f => f.UserId == userId)
 {
     ApplyPaging(baseParams.PageSize * (baseParams.PageIndex - 1), baseParams.PageSize);
 }
Пример #5
0
 public SpecialUserViolationSpecification(BaseSpecParams baseParams, string userId)
     : base(x => x.CitizenId == userId)
 {
     AddOrderBy(v => v.DateExpired);
     ApplyPaging(baseParams.PageSize * (baseParams.PageIndex - 1), baseParams.PageSize);
 }