Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }