/// <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));
 }
示例#2
0
 /// <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));
 }