Migrate ApiController to ControllerBase

Proprietary

Replace ApiController base class (from the removed WebApiCompatShim) with ControllerBase and add the [ApiController] attribute. The shim was removed in ASP.NET Core 3.0.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseApiControllerBase
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseApiControllerBase

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.