public static RootNC GetDocumentoElectronicoNC(int DocEntry) { RootNC root = new RootNC { cabecera = GetCabecera(DocEntry), detalle = GetListDetalle(DocEntry), leyendas = GetLeyenda(DocEntry), tributos = GetTributo(DocEntry) }; return(root); }
public void GuardaJson(RootNC root) { string json = JsonConvert.SerializeObject(root, Formatting.Indented); System.IO.File.WriteAllText(RutaData, json); }