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