Example #1
0
        public void RepromptSweepStakes()
        {
here:
            Console.WriteLine("Would you like to run another SweepStakes?");
            Console.WriteLine("1) YES\n2) NO\n");
            MarketingRepromtResponse = Console.ReadLine().ToLower();

            if (MarketingRepromtResponse == "1")
            {
                manager.InsertSweepStakes(SweepStakes);
                Console.Clear();
                SubProgram subProgram = new SubProgram();
                subProgram.SelectManagerType();
                subProgram.marketing.RunSweepStakes();
            }
            else if (MarketingRepromtResponse == "2")
            {
                Console.Clear();
                Console.WriteLine("Okay, have a nice day!");
                Console.ReadLine();
                return;
            }
            else
            {
                Console.WriteLine("Invalid Entry. Please try again");
                Console.ReadLine();
                goto here;
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            SubProgram subProgram = new SubProgram();

            subProgram.SelectManagerType();
            subProgram.marketing.RunSweepStakes();
        }