Ejemplo n.º 1
0
 public async Task Handle(TransferCreatedEvent @event)
 {
     await _transferRepository.AddTransferLog(new TransferLog
     {
         FromAccount    = @event.From,
         ToAccount      = @event.To,
         TransferAmount = @event.Amount
     });
 }
 public Task Handle(TransferCreatedEvent @event)
 {
     _transferRepository.AddTransferLog(new Models.TransferLog
     {
         ToAccount      = @event.To,
         FromAccount    = @event.From,
         TransferAmount = @event.Amount
     });
     return(Task.CompletedTask);
 }