Exemplo n.º 1
0
        private void AddOuting()
        {
            OutingMenu newItem = new OutingMenu();

            Console.WriteLine("What type of outing?");
            newItem.OutingType = Console.ReadLine();

            Console.WriteLine("When did it occur?");
            newItem.OutingDate = Console.ReadLine();

            Console.WriteLine("How many people were in attendance?");
            newItem.TotalPeople = int.Parse(Console.ReadLine());

            Console.WriteLine("What was the total cost per person?");
            newItem.CostPerPerson = int.Parse(Console.ReadLine());

            Console.WriteLine("What was the total cost of the entire event?");
            newItem.TotalCost = int.Parse(Console.ReadLine());

            _outingRepository.AddOuting(newItem);
        }
 public void AddOuting(OutingMenu newMenuItem)
 {
     _menuItem.Add(newMenuItem);
 }