If you put this behind an abstraction, it will be more testable. In fact, you could put the whole lot into that service, and just return a `ContentResult` with the host name returned from the service method.