public async Task <ActionResult> TemplateObjectFormatProperties(string tabId, int parentId, int id, IFormCollection collection) { var format = _formatService.ReadTemplateObjectFormatPropertiesForUpdate(id, _formatService.IsSiteDotNetByObjectId(parentId)); var model = ObjectFormatViewModel.Create(format, tabId, parentId, _formatService, false); await TryUpdateModelAsync(model); if (ModelState.IsValid) { model.Data = _formatService.UpdateObjectFormatProperties(model.Data); return(Redirect("TemplateObjectFormatProperties", new { tabId, parentId, id = model.Data.Id, successfulActionCode = ActionCode.UpdateTemplateObjectFormat })); } return(await JsonHtml("Properties", model)); }