public async Task <ActionResult> Compare(string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel, bool?boundToExternal) { var version = QpPluginVersionService.GetMergedVersion(selModel.Ids, parentId); var model = QpPluginVersionViewModel.Create(version, tabId, parentId, boundToExternal); model.ViewType = QpPluginVersionViewType.CompareVersions; return(await JsonHtml("Compare", model)); }
public async Task <ActionResult> Properties(string tabId, int parentId, int id, string successfulActionCode, bool?boundToExternal) { var version = QpPluginVersionService.Read(id, parentId); var model = QpPluginVersionViewModel.Create(version, tabId, parentId, successfulActionCode, boundToExternal); model.ViewType = QpPluginVersionViewType.Preview; return(await JsonHtml("Properties", model)); }
public async Task <ActionResult> CompareWithCurrent(string tabId, int parentId, int id, bool?boundToExternal) { var version = QpPluginVersionService.GetMergedVersion(new[] { id, ArticleVersion.CurrentVersionId }, parentId); var model = QpPluginVersionViewModel.Create(version, tabId, parentId, boundToExternal); model.ViewType = QpPluginVersionViewType.CompareWithCurrent; return(await JsonHtml("Compare", model)); }