AJH.CMS.WEB.UI.Admin.Services.TemplateService.GetDropDownTemplates C# (CSharp) Method

GetDropDownTemplates() private method

private GetDropDownTemplates ( string knownCategoryValues, string category ) : AjaxControlToolkit.CascadingDropDownNameValue[]
knownCategoryValues string
category string
return AjaxControlToolkit.CascadingDropDownNameValue[]
        public AjaxControlToolkit.CascadingDropDownNameValue[] GetDropDownTemplates(string knownCategoryValues, string category)
        {
            List<Template> templates = TemplateManager.GetTemplates(CMSContext.PortalID, CMSContext.LanguageID);
            List<AjaxControlToolkit.CascadingDropDownNameValue> cascadingList = new List<AjaxControlToolkit.CascadingDropDownNameValue>();
            foreach (Template item in templates)
            {
                cascadingList.Add(new AjaxControlToolkit.CascadingDropDownNameValue(item.Name, item.ID.ToString()));
            }
            return cascadingList.ToArray();
        }
    }
TemplateService