Exemple #1
0
        public ActionResult LayoutZones(string ID)
        {
            var zoneService   = new ZoneService();
            var widgetService = new WidgetService();
            var layout        = Service.Get(ID);
            var viewModel     = new LayoutZonesViewModel
            {
                Zones      = zoneService.GetZonesByLayoutId(ID),
                Widgets    = widgetService.GetByLayoutId(ID),
                LayoutHtml = layout.Html
            };

            return(View(viewModel));
        }