예제 #1
0
        public static void AssignmentPerCourse()
        {
            Console.WriteLine("Find assignment Id");
            int id = Convert.ToInt32(Console.ReadLine());

            foreach (var course in CourseManager.GetAllCourses())
            {
                Console.WriteLine(course);
            }
            //StudentManager.StudentPerCourse(id);
        }
예제 #2
0
        public static void Add()
        {
            Console.WriteLine("Give a title: ");
            string title = Console.ReadLine();

            Console.WriteLine("Give a stream: ");
            string stream = Console.ReadLine();

            Console.WriteLine("Give a type: ");
            string type = Console.ReadLine();

            Console.WriteLine("Give a start date: ");
            DateTime startdate = Convert.ToDateTime(Console.ReadLine());

            Console.WriteLine("Give an end date: ");
            DateTime enddate = Convert.ToDateTime(Console.ReadLine());

            CourseManager.CreateCourse(title, stream, type, startdate, enddate);
        }
예제 #3
0
        public static void Update()
        {
            Console.WriteLine("Update course: ");
            int id = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Give a title: ");
            string title = Console.ReadLine();

            Console.WriteLine("Give a stream: ");
            string stream = Console.ReadLine();

            Console.WriteLine("Give a type: ");
            string type = Console.ReadLine();

            Console.WriteLine("Give a start date: ");
            DateTime startdate = Convert.ToDateTime(Console.ReadLine());

            Console.WriteLine("Give an end date: ");
            DateTime enddate = Convert.ToDateTime(Console.ReadLine());

            CourseManager.UpdateCourse(id, title, stream, type, startdate, enddate);
        }