Depending on the request sent to the homepage, either JSON-LD is returned, or a HTML page is returned. Thanks to content delegation, this is possible. I have also moved the JsonLDTest static function to a separate class so that it doesn't take up unnecessary space in the ApiController and HomeController.