public List <Category> GetEditableItems() { Expression <Func <Category, bool> > pre = (a => (a.Id != 1 && a.Id != 2)); return(new List <Category>(db.GetItemsWhere(pre))); }
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))); }