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