public async Task <bool> CreateTransaction(Wallet wallet, decimal amount, TransactionType type, ChannelType channelType) { PaymentChannel channel = await DataContext.Store.GetOneAsync <PaymentChannel>(p => p.Type == channelType); User platformAccount = DataContext.PlatformAccount; Transaction transaction = new Transaction() { AddedAtUtc = DateTime.UtcNow, Amount = amount, AuxilaryUser = wallet.User, PaymentChannel = channel, Type = type, }; await wallet.AddTransactionAsync(transaction); //await platformAccount.Wallet.AddTransactionAsync(new Transaction(transaction) { AuxilaryUser = wallet.User }); return(true); }