public void Start() { while (true) { string option = ""; Console.WriteLine("---------------------"); Console.WriteLine(" MANAGER MAIN MENU"); Console.WriteLine("---------------------"); Console.WriteLine($"[0]View {location.LocationName} Order History \n[1]Replenish {location.LocationName} Inventory"); option = Console.ReadLine(); switch (option) { case "0": List <Orders> orders = new List <Orders>(); orders = orderActions.GetOrdersByLocationId(location.LocationId); Console.WriteLine("------------------------------------------------------------------------------------"); Console.WriteLine(" Order Date | LoactionId | CustomerId "); Console.WriteLine("-------------------------------------------------------------------------------------"); foreach (Orders order in orders) { Console.WriteLine($" {order.OrderDate} | {order.LocationId} | {order.CustomerId} "); } break; case "1": List <Inventory> currInventory = new List <Inventory>(); currInventory = inventoryActions.GetInventoryByLocationId(location.LocationId); Console.WriteLine("-------------------------------------------------"); Console.WriteLine("InventoryId | BatID | Bat Name | Quantity "); Console.WriteLine("-------------------------------------------------"); foreach (Inventory Inventory in currInventory) { BaseballBat bat = batActions.GetBaseballBatById(Inventory.BaseballBatsId); Console.WriteLine($" {Inventory.InventoryId} | {Inventory.BaseballBatsId} | {bat.ProductName} | {Inventory.Quantity}"); } Inventory inventory = new Inventory(); int id; int replenish; Console.WriteLine("-------------------------------"); Console.WriteLine(" UPDATE INVENTORY"); Console.WriteLine("-------------------------------"); Console.Write("Inventory ID: "); id = int.Parse(Console.ReadLine()); inventory = inventoryActions.GetInventoryById(id); Console.Write("Amount to Replenish?: "); replenish = int.Parse(Console.ReadLine()); inventory.Quantity += replenish; inventoryActions.UpdateInventory(inventory); Log.Information("Inventory Updated By Manger"); Console.WriteLine("Updated Inventory!"); break; default: Console.WriteLine("Wrong option!"); break; } } }