/// <summary> /// Executes the specified request. /// </summary> /// <param name="contentId">The content id.</param> /// <returns> /// Render page view model. /// </returns> public RenderPageViewModel Execute(Guid contentId) { return(previewService.GetContentPreviewViewModel(contentId, Context.Principal, true)); }
/// <summary> /// Executes the specified widget id. /// </summary> /// <param name="request">The request.</param> /// <returns>Rendered page view model</returns> public RenderPageViewModel Execute(PreviewWidgetCommandRequest request) { return(previewService.GetContentPreviewViewModel(request.WidgetId, Context.Principal, request.IsJavaScriptEnabled)); }