public async Task Handle(V1.AccountCreated @event, CancellationToken cancellationToken) { var periodeName = $"{@event.StartDate.ToString("MMMM")} {@event.StartDate.Year}"; var accountDto = new AccountDto( @event.AccountId, @event.OwnerId, periodeName, @event.CurrencyCode, new List <AccountItemDto>(), false, @event.StartDate, @event.EndDate); await accountDtoRepository.Create(accountDto); }