PresentationsAdminServicesSaveContentUnitView Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<ContentUnitPreviewData> SaveContentUnitView( ContentUnitPreviewData data )
Built-in asset view source code and content unit id
Sample JSON Input
{ "ID": "ComponentContentUnits/1", "AssetViewId": "", "AssetViewCode": "@model Ingeniux.Runtime.ICMSElement\n@using Ingeniux.Runtime\n@if (Model != null)\n{\n\t<div @_Helpers.RenderICEAttribute(Model)>@Model.Value</div>\n}" }
Updated content unit built-in view data
Sample JSON return
{ "ContentFreezeEndTime": "", "ContentFreezeStartTime": "", "code": 0, "error": null, "message": { "ID": "ComponentContentUnits\/1", "Name": "Right Copy", "AssetViewCode": "@model Ingeniux.Runtime.ICMSElement\u000d\u000a@using Ingeniux.Runtime\u000d\u000a@if (Model != null)\u000d\u000a{\u000d\u000a\u0009<div @_Helpers.RenderICEAttribute(Model)>@Model.Value<\/div>\u000d\u000a}", "AssetViewCodeEsc": "@model Ingeniux.Runtime.ICMSElement\u000d\u000a@using Ingeniux.Runtime\u000d\u000a@if (Model != null)\u000d\u000a{\u000d\u000a\u0009<div @_Helpers.RenderICEAttribute(Model)>@Model.Value<\/div>\u000d\u000a}", "AssetViewId": "", "CanEditView": true, "Finalized": false, "UseExistingView": false } }