public async Task Handle(AccountTransferCreatedEvent @event) { await _accountTransferRepository.CreateAccountTransferLog(new AccountTransferLog { Timestamp = DateTimeOffset.UtcNow, FromAccount = @event.FromAccount, ToAccount = @event.ToAccount, TransferAmount = @event.TransferAmount }); }
public Task CreateAccountTransferLog(AccountTransferLog accountTransferLog) { return(_accountTransferRepository.CreateAccountTransferLog(accountTransferLog)); }