Ejemplo n.º 1
0
 internal IList <SolutionTemplate> GetTemplates(IEnumerable <TemplateCategory> categories)
 {
     try {
         var gp = recentTemplates.GetItemsInGroup(templateGroup);
         return(gp.Select(item => FromRecentItem(categories, item)).Where(t => t != null).ToList());
     } catch (Exception e) {
         LoggingService.LogError("Can't get recent templates list.", e);
         return(new List <SolutionTemplate> ());
     }
 }
Ejemplo n.º 2
0
 public IList <SolutionTemplate> GetTemplates()
 {
     try {
         var gp = recentTemplates.GetItemsInGroup(templateGroup);
         return(gp.Select(FromRecentItem).Where(t => t != null).ToList());
     } catch (Exception e) {
         LoggingService.LogError("Can't get recent templates list.", e);
         return(new List <SolutionTemplate> ());
     }
 }