Exemplo n.º 1
0
        public async Task <int> SaveLayout(DashboardLayout layout)
        {
            BlockDataProvider blockDataProvider = new BlockDataProvider();
            string            layoutXML         = new XMLHelper().SerializeXML(layout.Elements, "Root", true);
            string            moduleXML         = new XMLHelper().SerializeXML(layout.Modules, "Root", true);

            return(await blockDataProvider.SaveLayout(layoutXML, moduleXML, layout.PageName, layout.SiteID));
        }
Exemplo n.º 2
0
        public async Task <IList <Block> > GetBoardListByUsage(Block block)
        {
            BlockDataProvider blockDataProvider = new BlockDataProvider();

            return(await blockDataProvider.GetBoardListByUsage(block));
        }