//decides the action of switch case
        public static void switchAction(int option, MainView f)
        {
            string inp = "";
            do
            {

                switch (option)
                {
                    case 1:
                        f.SelectmovieByCineplex();
                        break;
                    case 2:
                        f.Search();
                        break;
                    case 3:
                        f.EditBooking();
                        break;

                }
                Console.WriteLine("do you want to  continue say yes or no only");
                inp = Console.ReadLine();
                while (!inp.ToLower().Trim().Equals("yes") && !inp.ToLower().Trim().Equals("no"))
                {
                    Console.WriteLine("do you want to  continue say yes or no only");
                    inp = Console.ReadLine();
                }

            }
            while (!inp.ToLower().Equals("no"));

        }
        public static MainView Instance()
        {
            if (instance == null)
            {
                instance = new MainView();

            }
            return instance;
        }