public virtual IDictionary BooksAndQuantitys() { var booksAndQuantitys = new Dictionary <string, int>(); SaleDetails.ForEach(aSaleDetail => booksAndQuantitys.Add(aSaleDetail.Book, aSaleDetail.Quantity)); return(booksAndQuantitys); }
public virtual void AddBooksWithOcurrencies(Dictionary <string, int> listBooksWithOccurrences) { SaleDetails.ForEach(aDetail => aDetail.AddBookWithOcurrencie(listBooksWithOccurrences)); }