public void GetData() { int id = 0; Dictionary<string, string> StatusList; StatusList = ConstantRepository.GetConstantByCategory("Status"); ViewBag.StatusList = new SelectList(StatusList, "Key", "Value", id); Dictionary<int, string> MinistryList; MinistryList = MinistryRepository.GetMinistryList(); ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id); Dictionary<int, string> MemberList; MemberList = MemberRepository.GetMemberList(); ViewBag.MemberList = new SelectList(MemberList, "Key", "Value", id); Dictionary<int, string> PublicMinistryList; PublicMinistryList = MinistryRepository.GetPublicMinistryList(); ViewBag.PublicMinistryList = new SelectList(PublicMinistryList, "Key", "Value", id); Dictionary<string, string> DefaultMemberType; DefaultMemberType = ConstantRepository.GetConstantByCategory("Member Category"); ViewBag.DefaultMemberType = new SelectList(DefaultMemberType, "Key", "Value", id); Dictionary<int, string> MinistryPageStyle; MinistryPageStyle = ConstantRepository.GetConstantByCategoryID("Ministry Page Style"); ViewBag.MinistryPageStyle = new SelectList(MinistryPageStyle, "Key", "Value", id); Dictionary<int, string> GroupMinistryList; GroupMinistryList = MinistryRepository.GetGroupMinistryList(); ViewBag.GroupMinistryList = new SelectList(GroupMinistryList, "Key", "Value", id); }
public void GetData() { int id = 0; Dictionary <string, string> StatusList; StatusList = ConstantRepository.GetConstantByCategory("Status"); ViewBag.StatusList = new SelectList(StatusList, "Key", "Value", id); Dictionary <int, string> MinistryList; MinistryList = MinistryRepository.GetPublicMinistryList(); ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id); Dictionary <string, string> DefaultMemberType; DefaultMemberType = ConstantRepository.GetConstantByCategory("Member Category"); ViewBag.DefaultMemberType = new SelectList(DefaultMemberType, "Key", "Value", id); Dictionary <int, string> MinistryPageStyle; MinistryPageStyle = ConstantRepository.GetConstantByCategoryID("Ministry Page Style"); ViewBag.MinistryPageStyle = new SelectList(MinistryPageStyle, "Key", "Value", id); Dictionary <int, string> GroupMinistryList; GroupMinistryList = MinistryRepository.GetGroupMinistryList(); ViewBag.GroupMinistryList = new SelectList(GroupMinistryList, "Key", "Value", id); Dictionary <int, string> CellProviderList; CellProviderList = ConstantRepository.GetConstantByCategoryID("Cell Phone Provider"); ViewBag.CellProviderList = new SelectList(CellProviderList, "Key", "Value", id); Dictionary <string, string> ContactUsList; ContactUsList = ConstantRepository.GetConstantByCategory("Contact Us Email"); ViewBag.ContactUsList = new SelectList(ContactUsList, "Key", "Value", id); }