static void Main(string[] args) { //seed initial data to files on first project build DataSeed dataSeed = new DataSeed(); dataSeed.SeedStockToFile(); //get data from files DataService dataService = new DataService(); List <StockItem> stock = dataService.GetStock(); List <MenuItem> menu = dataService.GetMenu(); List <OrderItem> orders = dataService.GetOrders(); // services initialization StockItemService stockService = new StockItemService(stock); MenuItemService menuService = new MenuItemService(stock, menu); OrderItemService orderService = new OrderItemService(stock, menu, orders); // uncomment bellow method to use it //stockService.CreateStockItem(); //stockService.UpdateStockItem(); //stockService.RemoveStockItem(); stockService.DisplayStockItems(); //dataService.SaveStock(stock); //menuService.CreateMenuItem(); menuService.DisplayMenuItems(); //menuService.UpdateMenuItemProducts(); //menuService.UpdateMenuItemName(); //dataService.SaveMenu(menu); orderService.PlaceNewOrder(); stockService.DisplayStockItems(); menuService.DisplayMenuItems(); orderService.DisplayOrderList(); dataService.SaveStock(stock); dataService.SaveOrders(orders); }