示例#1
0
        private void AddNewOutings()
        {
            Console.Clear();



            Console.WriteLine("What type of event would you like to add?");
            string eventType = Console.ReadLine().ToLower();


            Console.WriteLine("What is the Date of the event? enter as MM/dd/yyyy");
            //accepts date in MM/dd/yyyy format
            DateTime eventDate = DateTime.Parse(Console.ReadLine());

            Console.WriteLine("How many people attended the event?");
            int attendCount = Convert.ToInt16(Console.ReadLine());

            //Console.WriteLine("What was the Cost of the event?");
            //double costOfEvent = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("What is the Cost Person?");
            double totCostPerson = Convert.ToDouble(Console.ReadLine());

            CompOutContent compOutContentItem = new CompOutContent(attendCount, totCostPerson, eventType, eventDate);

            _compOutRepo.AddCompOuting(compOutContentItem);

            Console.WriteLine("New Outing Added.");
            Console.ReadKey();
        }
        public void TotCostAllOutings()
        {
            CompOutContent bowling = new CompOutContent(25, 50.00, "Bowling", new DateTime(2020, 05, 07));

            _repo.AddCompOuting(bowling);
        }
示例#3
0
        public void SeedRepo()
        {
            CompOutContent bowling = new CompOutContent(25, 50.00, "Bowling", new DateTime(2020, 05, 07));

            _compOutRepo.AddCompOuting(bowling);
        }