I have an empty asp.net core app. I have added a controller to the application. When I try to compile the application it throws the below error
'Controller' is a namespace but is used like a type
The source is below
However if I prefix Controller with the namespace as shown below then it works fine.
Why is this ?

