Exemplo n.º 1
0
        private void AddOuting()
        {
            Console.WriteLine("What did you do for the Company Outing?");
            string outing = Console.ReadLine();

            Console.WriteLine("What was the total cost of the Outing?");
            double totalcost = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("How many employees went on the Outing?");
            int numpeople = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("What is the date of the outing. Please Write in this Format. mm/dd/yyyy");
            DateTime date = DateTime.Parse(Console.ReadLine());

            OutingClass newOuting = new OutingClass(outing, totalcost, numpeople, date);

            outingRepo.AddOutingtoList(newOuting);
            Console.Clear();
            InitialPrompt();
        }
Exemplo n.º 2
0
 public void AddOutingtoList(OutingClass item)
 {
     _Outing.Add(item);
 }