public void AddInventory() { Console.Clear(); AsciiHeader.AsciiHead(); Location trackedLocation = new Location(); Inventory newInventory = new Inventory(); Product newProduct = new Product(); Console.WriteLine("Please enter the appropriate information to update a store's inventory"); Console.WriteLine("Enter Location Name: "); trackedLocation = _locationBL.FilterLocationByName(Console.ReadLine()); if (trackedLocation.LocationID == 0) { Console.WriteLine("That's not a location Name :( please try again!"); Console.WriteLine("Press Enter to Continue."); Console.ReadLine(); return; } else { newInventory.InventoryLocation = trackedLocation.LocationID; } Console.WriteLine("Create a name for your inventory: "); newInventory.InventoryName = Console.ReadLine(); Console.WriteLine("Please enter a product name to store in this inventory: "); newProduct = _productBL.GetFilteredProduct(Console.ReadLine()); if (newProduct.ProductName == null) { Console.WriteLine("This product does not exist in our system. Please try again :("); return; } newInventory.ProductID = newProduct.ProductID; Console.WriteLine($"how many {newProduct.ProductName} items should be added to this inventory?"); newInventory.ProductQuantity = Int32.Parse(Console.ReadLine()); Console.WriteLine($"Great! the {trackedLocation.LocationName} location has been updated with an inventory of {newInventory.ProductQuantity} {newProduct.ProductName}"); _inventoryBL.AddInventory(newInventory); Console.WriteLine("Inventory update successful! Press enter to continue."); Log.Information($"Inventory at the {trackedLocation.LocationName} location has been updated with {newInventory.ProductQuantity} {newProduct.ProductName}s"); Console.ReadLine(); Console.Clear(); //Console.WriteLine(newInventory.InventoryLocation); }