I have successfully added a web api controller
to an existing MVC4
application.
I would like to have the api documentation functionality as is
V5.2.2 has the following code:
public HelpController()
: this(GlobalConfiguration.Configuration)
{
}
public HelpController(HttpConfiguration config)
{
Configuration = config;
}
in the HelpController
Unity uses the constructor with the most arguments, so to get it to use the parameterless constructor I changed the second overload to protected:
protected HelpController(HttpConfiguration config)
{
Configuration = config;
}
And the help pages are back