public static int Core_TemplateItemRead(int templateId, [MarshalAs(UnmanagedType.BStr)] ref string json) { int result = 0; try { Template_Dto templateDto = core.TemplateItemRead(templateId); json = new Packer().PackTemplateDto(templateDto); } catch (Exception ex) { LastError.Value = ex.Message; result = 1; } return(result); }
public string PackTemplateDto(Template_Dto templateDto) { return(JObject.FromObject(templateDto).ToString()); }