public ActionResult CompareTemplateObjectFormatVersions(string tabId, int parentId, int[] IDs) { var version = _formatService.GetMergedObjectFormatVersion(IDs, parentId, false); var model = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, false); ViewData[SpecialKeys.IsEntityReadOnly] = true; return(JsonHtml("CompareObjectFormatVersionProperties", model)); }
public async Task <ActionResult> CompareWithCurrentPageObjectFormatVersion(string tabId, int parentId, int id, string successfulActionCode) { var version = _formatService.GetMergedObjectFormatVersion(new[] { id, ObjectFormatVersion.CurrentVersionId }, parentId, true); var model = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, true); ViewData[SpecialKeys.IsEntityReadOnly] = true; model.SuccesfulActionCode = successfulActionCode; return(await JsonHtml("CompareObjectFormatVersionProperties", model)); }
public async Task <ActionResult> CompareTemplateObjectFormatVersions( string tabId, int parentId, [FromBody] SelectedItemsViewModel selModel ) { var version = _formatService.GetMergedObjectFormatVersion(selModel.Ids, parentId, false); var model = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, false); ViewData[SpecialKeys.IsEntityReadOnly] = true; return(await JsonHtml("CompareObjectFormatVersionProperties", model)); }