I created an empty Asp.Net Core 2.0 project (without scaffold). Model DDD and etc. But when I try to create my controller, it is inherited from ApiController or Controller, it gives error:
Controller is a namespace, but is used as a type
[Produces("application/json")]
[Route("api/Message")]
public class MessageController : Controller
{
}
In the example above I tried to create an ApiController and it came as above.