public decimal GetBill() { decimal drinkBill = DrinkOrders.Sum(x => x.Price); decimal foodBill = FoodOrders.Sum(x => x.Price); decimal totalBill = drinkBill + foodBill; return(totalBill); }
public decimal GetBill() { return(FoodOrders.Sum(x => x.Price) + DrinkOrders.Sum(x => x.Price) + Price); }