Esempio 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));
        }
Esempio 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));
        }