コード例 #1
0
        public List <SelectListItem> GetUrlGeneratorOptions(Type type)
        {
            var settings             = _configurationProvider.GetSiteSettings <PageDefaultsSettings>();
            var currentGeneratorType = settings.GetGeneratorType(type);

            return(_getUrlGeneratorOptions.Get(type, currentGeneratorType));
        }
コード例 #2
0
        public List <SelectListItem> GetUrlGeneratorOptions(Type type)
        {
            List <SelectListItem> urlGeneratorOptions = _getUrlGeneratorOptions.Get(type);

            urlGeneratorOptions.Insert(0, new SelectListItem {
                Text = "Please select...", Value = ""
            });
            return(urlGeneratorOptions);
        }
コード例 #3
0
 public List <SelectListItem> GetUrlGeneratorOptions(Type type)
 {
     return(_getUrlGeneratorOptions.Get(type, Settings.GetGeneratorType(type)));
 }