Exemple #1
0
        public void ViewAllOutings()
        {
            List <Outings> allOutings = _outingsRepo.GetOutingList();

            Console.WriteLine($"List of all company outings:\n");
            foreach (Outings outing in allOutings)
            {
                Console.WriteLine($"{outing.DateOfOuting} - {outing.EventType} - Attendence: {outing.NumberOfPeople}, Cost/Person: {outing.CostPerPerson}, CostForEvent: {outing.CostForEvent}.");
            }
            Console.WriteLine($"Press any key to return to menu...");
            Console.ReadKey();
        }
Exemple #2
0
        //Display List
        private void DisplayAllOutings()
        {
            Console.Clear();
            List <Outing> listOfOutings = _outingsRepository.GetOutingList();

            foreach (Outing outing in listOfOutings)
            {
                Console.WriteLine($"Name: {outing.OutingName}\n" +
                                  $"Number of people attending: {outing.OutingPeopleAttending}\n" +
                                  $"Date of outing: {outing.OutingDateOfEvent}\n" +
                                  $"Cost per person: {outing.OutingCostPerPerson}\n" +
                                  $"Total cost of outing: {outing.OutingTotalCost}\n" +
                                  $"Outing type: {outing.TypeOfOuting}\n");
            }
        }