public IPagedCollection<AttachmentRule> GetPaged(ISpecification<AttachmentRule> specification)
        {
            var entities = specification.SatisfyEntitiesFrom(this.Values.AsQueryable());
            var total = this.Count(specification);

            return new PagedCollection<AttachmentRule>(entities.ToList(), specification.PageOrDefault, specification.LimitOrDefault, total);
        }
 public IList<AttachmentRule> GetAll(ISpecification<AttachmentRule> specification)
 {
     return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList();
 }
 public int Count(ISpecification<AttachmentRule> specification)
 {
     return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).Count();
 }
Exemplo n.º 4
0
 public IList<Setting> GetAll(ISpecification<Setting> specification)
 {
     return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList();
 }
Exemplo n.º 5
0
 public int Count(ISpecification<Setting> specification)
 {
     return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).Count();
 }
Exemplo n.º 6
0
 public IPagedCollection<User> GetPaged(ISpecification<User> specification)
 {
     return new PagedCollection<User>(specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList(), 1, 10, 0);
 }