예제 #1
0
 public SalesRecord(int id, DateTime date, double amount, SaleStatus status, Sellers sellers)
 {
     Id      = id;
     Date    = date;
     Amount  = amount;
     Status  = status;
     Sellers = sellers;
 }
예제 #2
0
 public double TotalSales(DateTime initial, DateTime final) => Sellers.Sum(seller => seller.TotalSales(initial, final));
예제 #3
0
 public void AddSeller(Seller seller) => Sellers.Add(seller);
예제 #4
0
 public void AddSeller(Seller seller)
 {
     Sellers.Add(seller);
 }
예제 #5
0
 public void AddSeller(Sellers seller)
 {
     SellersProperty.Add(seller);
 }