public List <string> GetThemeNames() { List <string> list = new List <string>(); var themes = _theme.GetAllThemes(); if (themes != null && themes.Count() > 0) { foreach (var item in themes) { string path = _env.MapWebRootPath(_themeName, item.ID); if (ExtFile.ExistDirectory(path)) { list.Add(item.ID); } } } return(list); }
public virtual List <string> GetThemeNames() { List <string> list = new List <string>(); var themes = _themeService.GetAllThemes(); if (themes != null && themes.Count() > 0) { foreach (var item in themes) { string path = _webHostEnvironment.MapWebRootPath(_themeFolderName, item.ID); if (ExtFile.ExistDirectory(path)) { list.Add(item.ID); } } } return(list); }