public async Task Handle(ErrorLogEvent @event) { var errorToLog = new ErrorLog { UserId = @event.UserId, ErrorMessage = @event.Message, MessageType = @event.MessageType, Timestamp = @event.Timestamp }; await _errorLogRepository.SaveErrorLog(errorToLog); }