public UserServiceSpecification(ServiceSpecParams serviceSpecParams) : base(x => (string.IsNullOrEmpty(serviceSpecParams.Search) || x.AppUser.FirstName.ToLower().Contains(serviceSpecParams.Search)) ) { AddInclude(x => x.AppUser); AddInclude(x => x.Service); AddOrderBy(x => x.CreateDate); ApplyPaging(serviceSpecParams.PageSize * (serviceSpecParams.PageIndex - 1), serviceSpecParams.PageSize); }
public UserServiceSpecificationCount(ServiceSpecParams serviceSpecParams) : base(x => (string.IsNullOrEmpty(serviceSpecParams.Search) || x.AppUser.FirstName.ToLower().Contains(serviceSpecParams.Search)) ) { }