Example #1
0
        public ActionResult Index()
        {
            SectionViewModel model = new SectionViewModel();

            model           = DecorateViewModel <SectionViewModel>(model);
            model.TimeZones = TimeZones.getDictionary();

            return(View(model));
        }
Example #2
0
        public ActionResult Index()
        {
            SectionViewModel model = new SectionViewModel();

            model = DecorateViewModel <SectionViewModel>(model);

            model.CourseFormat        = CourseFormat.Live;
            model.EnrollmentStatus    = EnrollmentStatus.Closed;
            model.TimeZones           = TimeZones.getDictionary();
            model.WikiPageContentType = WikiPageContentType.NotSet;

            return(View(model));
        }