Beispiel #1
0
        public void GetLocationItems()
        {
            Product P = new Product();

            Console.WriteLine("Enter Location Name");
            currentLocation = SearchForLocation(Console.ReadLine());
            foreach (var item in _storeBL.GetLocationItems())
            {
                if (item.LFK == currentLocation.Id)
                {
                    //Console.WriteLine(item.ToString());
                    P = _storeBL.GetProductById((int)item.PFK);
                    Console.WriteLine(P.ToString());
                    Console.WriteLine($"\tQuantity available {item.Quantity}\n");
                }
            }
            Console.WriteLine("Press any key to continue");
            Console.ReadLine();
        }