// GET: UserRegistration
        public ActionResult Index()
        {
            var courseOrchestrator = new CourseOrchestrator();

            var semesterModel = new SemesterModel
            {
                Courses  = courseOrchestrator.GetAllCourses(),
                Semester = SemesterEnum.Spring,
                Year     = 2019
            };

            return(View(semesterModel));
        }
Esempio n. 2
0
        // GET: Course
        public ActionResult Index()
        {
            var courseOrchestrator = new CourseOrchestrator();

            var semesterModel = new SemesterModel
            {
                Courses  = courseOrchestrator.GetAllCourses(),
                Semester = SemesterEnum.Fall,
                Year     = 2018
            };

            var detailsModel = new DetailsModel
            {
                FirstName = "Henry",
                LastName  = "Dang",
                Gender    = GenderEnum.Male,
                Age       = 21,
                Major     = "BIS"
            };

            return(View(detailsModel));
        }