Пример #1
0
        private async Task ValidatePassengerAsync(int rideId)
        {
            var userDto = await _userLogic.GetLoggedInUser();

            if (!_rideLogic.IsPassenger(rideId, userDto.Email))
            {
                throw new UnauthorizedAccessException();
            }
        }