Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public string PackTemplateDto(Template_Dto templateDto)
 {
     return(JObject.FromObject(templateDto).ToString());
 }