public static SelectList GetDepts(string branchcode) { //branchcode = "001"; string deptcodes = "118,225,224,117,180,474,1473,166"; return(LINQCalls.getHODepts(branchcode, deptcodes)); }
public static SelectList GetDepts(string branchcode) { //branchcode = "001"; System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~/"); System.Configuration.KeyValueConfigurationElement HeadOfficeDepartments = rootWebConfig.AppSettings.Settings["HeadOfficeDepartments"]; //string deptcodes = "118,225,224,117,180,474,1473,166,658"; string deptcodes = HeadOfficeDepartments.Value.ToString(); return(LINQCalls.getHODepts(branchcode, deptcodes)); }