コード例 #1
0
        //member methods
        public void CreateSweepstakes()
        {
            Console.WriteLine("What would you like to name the Sweepstakes?");
            string      sweepstakesName = Console.ReadLine();
            Sweepstakes sweepstakes     = new Sweepstakes(sweepstakesName);

            _manager.InsertSweepstakes(sweepstakes);
        }
コード例 #2
0
        public void CreateSweepStake()
        {
            Sweepstakes sweepstakes = new Sweepstakes(UserInterface.GetUserInputFor("Please enter the name of your sweepstakes!"));

            _manager.InsertSweepstakes(sweepstakes);
        }