Ejemplo n.º 1
0
        public static void ReadOperation(Shop myShop)
        {
            string operation = Console.ReadLine();

            switch (operation)
            {
            case ("1"):
                myShop.AddProduct();
                break;

            case ("2"):
                myShop.RemoveItem(myShop.products);
                break;

            case ("3"):
                myShop.ListAllProducts();
                break;

            case ("4"):
                myShop.AddClient();
                break;

            case ("5"):
                myShop.RemoveItem(myShop.clients);
                break;

            case ("6"):
                myShop.ListAllClients();
                break;

            case ("7"):
                myShop.SellAnItem();
                break;

            default:
                Console.WriteLine("You have entered the wrong code.\b\n==================");
                break;
            }
        }