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());
        }
        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());
        }