public IActionResult GetCurrentInstructorByStudentId()
        {
            var accessTokenAsString = JwtHelper.GetTokenSubstring(Request.Headers["Authorization"].ToString());

            if (accessTokenAsString == "null")
            {
                return(Unauthorized());
            }
            var userCredentials = JwtHelper.GetCredentialsFromToken(accessTokenAsString);

            var id = userCredentials.Id;

            var instructorToGet = _instructorRepository.GetCurrentInstructorByStudentId(id);

            if (instructorToGet == null)
            {
                return(NotFound());
            }

            return(Ok(instructorToGet));
        }