Example #1
0
 public IActionResult PageZones(QueryContext context)
 {
     var page = Service.Get(context.PageID);
     var layout = _layoutService.Get(page.LayoutId);
     var viewModel = new LayoutZonesViewModel
     {
         Page = page,
         Layout = layout,
         PageID = context.PageID,
         LayoutID = layout.ID,
         Zones = _zoneService.GetZonesByPageId(context.PageID),
         Widgets = _widgetService.GetAllByPage(Service.Get(context.PageID)),
         LayoutHtml = layout.Html
     };
     return View(viewModel);
 }