public ReferenceDataController() { sectionDataHandler = new SectionDataHandler(); }
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(); }