public ReferenceDataController()
 {
     sectionDataHandler = new SectionDataHandler();
 }
Пример #2
0
        public JsonResult GetSections()
        {
            SectionDataHandler sectionHandler = new SectionDataHandler();
            var sections = sectionHandler.GetSections();


            return Json(sections, JsonRequestBehavior.AllowGet);
        }
 private void PopulateSections()
 {
     if (sectionHandler == null)
         sectionHandler = new SectionDataHandler();
     var sections = sectionHandler.GetSections();
     ViewData["SectionList"] = sections;
     ViewData["defaultSection"] = sections.First();
 }