public string GetInfo() { string result = ""; result += $"\n order id: {Id}\n order Type:{orderType}\n customer name: {Customer.Name}\n customer Id: {Customer.IdNumber}\n deliverty address:{DeliveryAddress.GetInfo()}\n order Time: {OrderTime}\n"; if (Deliverd) { result += $"delivery Time: { DeliveryTime}"; } foreach (MenuItem item in OrderItems) { if (item != null) { result += $"\n{item.GetInfo()}\n"; } } result += $"\tTotal Cost{Cost}\n"; return(result); }