Пример #1
0
        public List <TileDTO> getTileList(decimal layoutId, decimal pageContentId)
        {
            List <TileDTO> tileList  = new List <TileDTO>();
            LayoutDTO      layoutDTO = layoutEntity.getLayoutInfo(layoutId);
            List <string>  list      = Parser.getPlaceHolderList(layoutDTO.TokenizeString, Constant.pattern);

            foreach (string tile in list)
            {
                TileDTO tileDTO = new TileDTO();
                tileDTO.tileName      = Parser.clean(tile);
                tileDTO.componentList = componentEntity.getPageContentComponentList(pageContentId, Parser.clean(tile));
                tileList.Add(tileDTO);
            }
            return(tileList);
        }
Пример #2
0
 public List <ComponentDTO> getPageContentComponentList(decimal pageContentId, string tileName)
 {
     return(componentEntity.getPageContentComponentList(pageContentId, tileName));
 }