public ActionResult JoinHub(
            [FromQuery, SwaggerParameter("Link of the hub the pupil is joining")]
            string link)
        {
            try
            {
                var currentPupil = _authenticationService.GetCurrentPupil();

                _attendeeService.AddAttendee(currentPupil, link);

                return(Created("Pupil added to hub", true));
            }
            catch (AttendeeAlreadyRegisteredException ex)
            {
                return(Unauthorized(
                           new UnauthorizedError(ex)));
            }
            catch (HubMaxAttendeeCountReachedException ex)
            {
                return(Conflict(
                           new ConflictError(ex)));
            }
            catch (UnknownHubException ex)
            {
                return(BadRequest(
                           new BadRequestError(ex)));
            }
        }