public SalesRecord(int id, DateTime date, double amount, SaleStatus status, Sellers sellers) { Id = id; Date = date; Amount = amount; Status = status; Sellers = sellers; }
public double TotalSales(DateTime initial, DateTime final) => Sellers.Sum(seller => seller.TotalSales(initial, final));
public void AddSeller(Seller seller) => Sellers.Add(seller);
public void AddSeller(Seller seller) { Sellers.Add(seller); }
public void AddSeller(Sellers seller) { SellersProperty.Add(seller); }