Пример #1
0
 private static List <string> GetTemplates(IRepository2 <HtmlBlock> blockService, int blockId)
 {
     return(blockService.GetValues(blockId,
                                   x => x.Description).Split(new [] { "</p>" },
                                                             StringSplitOptions.RemoveEmptyEntries)
            .Select(x => x.Remove("<p>").Remove("\n").Remove("\r"))
            .Where(x => x.Contains("[Date]")).ToList());
 }