Ejemplo n.º 1
0
        public ActionResult PreviewWidget(string widgetId, bool enableJavaScript)
        {
            var request = new PreviewWidgetCommandRequest { WidgetId = widgetId.ToGuidOrDefault(), IsJavaScriptEnabled = enableJavaScript };
            var model = GetCommand<PreviewWidgetCommand>().ExecuteCommand(request);

            return View(PagesConstants.ContentVersionPreviewTemplate, model);
        }
Ejemplo n.º 2
0
        public ActionResult PreviewWidget(string widgetId, bool enableJavaScript)
        {
            var request = new PreviewWidgetCommandRequest { WidgetId = widgetId.ToGuidOrDefault(), IsJavaScriptEnabled = enableJavaScript };
            var model = GetCommand<PreviewWidgetCommand>().ExecuteCommand(request);

            return View("Partial/WidgetPreview", model);
        }