public static Transactions ToTransactions(jsonTransactions _Transactions) { Transactions tmp = new Transactions { ID = _Transactions.id }; foreach (jsonTransaction s in _Transactions.transactions) { tmp.AccountTransactions.Add(s.ToTransaction()); } return(tmp); }
public static jsonTransactions FromTransactsion(Transactions _Transactions) { List <jsonTransaction> tmpTransactins = new List <jsonTransaction>(); foreach (Transaction t in _Transactions) { tmpTransactins.Add(t.ToJsonTransaction()); } jsonTransactions tmp = new jsonTransactions { id = _Transactions.ID, transactions = tmpTransactins.ToArray() }; return(tmp); }
public static Transactions FromJsonTransactions(jsonTransactions _Transactions) { return(_Transactions.ToTransactions()); }