Пример #1
0
        public long Count(UserEntity UserEntity, SearchOperationEntity SearchOperationEntity)
        {
            if (SearchOperationEntity == null)
            {
                SearchOperationEntity = new SearchOperationEntity();
            }
            IQueryable <Operation> Operations = IMSContext.Operations;

            Operations = SearchOperationEntity.ApplyTo(Operations);
            return(Operations.Count());
        }
Пример #2
0
        public List <OperationEntity> Get(UserEntity UserEntity, SearchOperationEntity SearchOperationEntity)
        {
            if (SearchOperationEntity == null)
            {
                SearchOperationEntity = new SearchOperationEntity();
            }
            IQueryable <Operation> Operations = IMSContext.Operations;

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