示例#1
0
        private void CastOutingToList()
        {
            Outings latestOuting = new Outings();

            Console.WriteLine("Which Event would you prefer?");
            latestOuting.OutingType = Console.ReadLine();

            Console.WriteLine("What date will your event take place?");
            latestOuting.OutingDate = DateTime.Parse(Console.ReadLine());

            Console.WriteLine("How many people will be attending this event?");
            latestOuting.NumberOfPeople = int.Parse(Console.ReadLine());

            Console.WriteLine("Price per person");
            latestOuting.CostPerPerson = decimal.Parse(Console.ReadLine());

            Console.WriteLine("Price per event");
            latestOuting.EventCost = decimal.Parse(Console.ReadLine());

            _outingRepo.CastOutingsToList(latestOuting);
        }