Beispiel #1
0
        //-----------------------------------------------------------------------CREATING NEW SCHOOLCLASSES------------------------------------------------------
        public void GetSchoolClasses()
        {
            CommandPromtUtils  utils         = new CommandPromtUtils();
            List <SchoolClass> schoolClasses = new List <SchoolClass>();

            do
            {
                schoolClasses.Add(GetSchoolClassesInfo());
            }while (utils.AskUserToExitRecording());

            PrintRawData(schoolClasses);
        }
Beispiel #2
0
        private SchoolClass GetSchoolClassesInfo()
        {
            CommandPromtUtils utils       = new CommandPromtUtils();
            SchoolClass       schoolClass = new SchoolClass();

            Console.WriteLine("---- Recording a new Schoolclass ----");
            schoolClass.Course     = utils.GetCourseInfo();
            schoolClass.Trainer    = utils.GetTrainers(schoolClass.Course.Title);
            schoolClass.Assignment = utils.GetAssignments(schoolClass.Course.StartDate, schoolClass.Course.EndDate);
            schoolClass.Students   = utils.GetStudents(schoolClass.Assignment);

            return(schoolClass);
        }