Exemplo n.º 1
0
        public async Task <ActionResult> CompareWithCurrentTemplateObjectFormatVersion(string tabId, int parentId, int id, string successfulActionCode)
        {
            var version = _formatService.GetMergedObjectFormatVersion(new[] { id, ObjectFormatVersion.CurrentVersionId }, parentId, false);
            var model   = ObjectFormatVersionCompareViewModel.Create(version, tabId, parentId, false);

            ViewData[SpecialKeys.IsEntityReadOnly] = true;
            model.SuccesfulActionCode = successfulActionCode;
            return(await JsonHtml("CompareObjectFormatVersionProperties", model));
        }