private async Task ValidatePassengerAsync(int rideId) { var userDto = await _userLogic.GetLoggedInUser(); if (!_rideLogic.IsPassenger(rideId, userDto.Email)) { throw new UnauthorizedAccessException(); } }