public async Task CreateComunication(Transfer transfer,
                                             int CashAccountFrom, int CashAccountTo)
        {
            var transferFrom = new TransferFrom();

            transferFrom.CashAccount.Id = CashAccountFrom;
            transferFrom.Transfer.Id    = transfer.Id;
            _context.TransfersFrom.Add(transferFrom);

            var transferTo = new TransferTo();

            transferTo.CashAccount.Id = CashAccountTo;
            transferTo.Transfer.Id    = transfer.Id;
            _context.TransfersTo.Add(transferTo);

            await _context.SaveChangesAsync();
        }
 public async Task Update(TransferFrom entity)
 {
     _context.TransfersFrom.Update(entity);
     await _context.SaveChangesAsync();
 }
Beispiel #3
0
 public string TransferFrom(TransferFrom transferFrom, Address sender, string privateKey)
 {
     return(_nftClient.MakeCallWithReconnect(application =>
                                             application.SubmitExtrinsicObject(transferFrom, Module, TransferFromMethod, sender, privateKey), _nftClient.Settings.MaxReconnectCount));
 }