Exemple #1
0
        public long Count(UserEntity UserEntity, SearchOperationEntity SearchOperationEntity)
        {
            if (SearchOperationEntity == null)
            {
                SearchOperationEntity = new SearchOperationEntity();
            }
            IQueryable <Operation> Operations = context.Operations;

            Operations = SearchOperationEntity.ApplyTo(Operations);
            return(Operations.Count());
        }
Exemple #2
0
        public List <OperationEntity> Get(UserEntity UserEntity, SearchOperationEntity SearchOperationEntity)
        {
            if (SearchOperationEntity == null)
            {
                SearchOperationEntity = new SearchOperationEntity();
            }
            IQueryable <Operation> Operations = context.Operations;

            Operations = SearchOperationEntity.ApplyTo(Operations);
            Operations = SearchOperationEntity.SkipAndTake(Operations);
            return(Operations.ToList().Select(u => new OperationEntity(u)).ToList());
        }
Exemple #3
0
 public List <OperationEntity> Get(SearchOperationEntity SearchOperationEntity)
 {
     return(OperationService.Get(UserEntity, SearchOperationEntity));
 }
Exemple #4
0
 public long Count(SearchOperationEntity SearchOperationEntity)
 {
     return(OperationService.Count(UserEntity, SearchOperationEntity));
 }