Question: what is difference between controller and controllerbase?
Answer: ControllerBase class Controller derives from ControllerBase and adds support for views, so it's for handling web pages, not web API requests. There's an exception to this rule: if you plan to use the same controller for both views and web APIs, derive it from Controller .