Example #1
0
        static void Main(string[] args)
        {
            TrainingRepository trainingRepository = new TrainingRepository();

            Console.WriteLine("A list of courses");
            Console.WriteLine("******************");
            foreach (var item in trainingRepository.ListCourses())
            {
                Console.WriteLine(item.CourseCode + " " + item.CourseName + " " + item.CreatedBy);
            }

            Console.WriteLine();

            Console.WriteLine("The upcoming courses");
            Console.WriteLine("********************");
            trainingRepository.GetUpcomingCourse();

            Console.WriteLine();

            Console.WriteLine("Delegate Info");
            Console.WriteLine("********************");
            trainingRepository.GetDelegateInfo();

            Console.ReadLine();
        }