예제 #1
0
        private void AddOutings()
        {
            Outing newOuting = new Outing();

            Console.WriteLine("What type of event is it?");
            newOuting.EventType = Console.ReadLine();

            Console.WriteLine("How many people will be there?");
            newOuting.NumberOfPeople = int.Parse(Console.ReadLine());

            Console.WriteLine("What's the date of the outing?");
            newOuting.DateOfOuting = Console.ReadLine();

            Console.WriteLine("What is the cost per person?");
            newOuting.CostPerPerson = decimal.Parse(Console.ReadLine());

            Console.WriteLine("What is the cost of the event?");
            newOuting.CostOfEvent = decimal.Parse(Console.ReadLine());

            outingrepo.AddOutingsToList(newOuting);
        }