Пример #1
0
        public List <Category> GetEditableItems()
        {
            Expression <Func <Category, bool> > pre = (a => (a.Id != 1 && a.Id != 2));

            return(new List <Category>(db.GetItemsWhere(pre)));
        }
Пример #2
0
        public List <Income> GetItemsByDates(DateTime startDate, DateTime endDate)
        {
            Expression <Func <Income, bool> > pre = (a => (a.Date >= startDate && a.Date <= endDate));

            return(new List <Income>(db.GetItemsWhere(pre)));
        }