shreesharao / aspnetcore-ConsoleToWeb

Convert Console project to web project for understanding the working of asp.net core mvc
0 stars 0 forks source link

Unable to invoke controller action #10

Closed shreesharao closed 6 years ago

shreesharao commented 6 years ago

404 is returned when trying to invoke a controller action after adding mvc middleware.

shreesharao commented 6 years ago

Controller class must be public . In my case controller class was not marked as public.