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

            return(_getUrlGeneratorOptions.Get(type, currentGeneratorType));
        }
Example #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);
        }
 public List <SelectListItem> GetUrlGeneratorOptions(Type type)
 {
     return(_getUrlGeneratorOptions.Get(type, Settings.GetGeneratorType(type)));
 }