public IEnumerable <Bestelling> GetBestellingen(int aantalMaanden) { return(Bestellingen.Where(b => (DateTime.Today.AddMonths(-aantalMaanden) <= b.CreatieDatum)).OrderByDescending(b => b.CreatieDatum)); }
private int GetAantalBesteldeCheques(int jaar) { return(Bestellingen.Where(b => b.CreatieDatum.Year == jaar).Sum(b => b.AantalAangekochteCheques)); }