protected override GlobalBank.Commercial.EBanking.Modules.EFT.ServiceProxies.AccountService.TransferTableEntry BusinessToService(IEntityTranslatorService service, Transfer value) { TransferTableEntry to = new TransferTableEntry(); to.id = value.Id.ToString(); to.sourceAccount = value.SourceAccount; to.destinationAccount = value.DestinationAccount; to.amount = value.Amount; to.description = value.Description; to.status = value.Status; to.sourceAccountName = value.SourceAccountName; to.destinationAccountName = value.DestinationAccountName; return(to); }
protected override GlobalBank.Commercial.EBanking.Modules.EFT.ServiceProxies.AccountService.ProcessTransfersRequestType BusinessToService(IEntityTranslatorService service, Transfer[] value) { List <TransferTableEntry> transfers = new List <TransferTableEntry>(); foreach (Transfer transfer in value) { TransferTableEntry to = service.Translate <TransferTableEntry>(transfer); transfers.Add(to); } ProcessTransfersRequestType request = new ProcessTransfersRequestType(); request.accountsToProcess = transfers.ToArray(); return(request); }