Exemple #1
0
        public virtual IDictionary BooksAndQuantitys()
        {
            var booksAndQuantitys = new Dictionary <string, int>();

            SaleDetails.ForEach(aSaleDetail => booksAndQuantitys.Add(aSaleDetail.Book, aSaleDetail.Quantity));
            return(booksAndQuantitys);
        }
Exemple #2
0
 public virtual void AddBooksWithOcurrencies(Dictionary <string, int> listBooksWithOccurrences)
 {
     SaleDetails.ForEach(aDetail => aDetail.AddBookWithOcurrencie(listBooksWithOccurrences));
 }