public static long GetDefaultXmlConfig(long folder_id) { ContentAPI m_refContentApi = new ContentAPI(); XmlConfigData[] active_list; active_list = m_refContentApi.GetEnabledXmlConfigsByFolder(folder_id); foreach (XmlConfigData xmlData in active_list) { if (xmlData.IsDefault) { return xmlData.Id; } } return 0; }