Difference in Controller and ControllerBase Class in

Controler.cs

A base class for an MVC controller with view support.

ControllerBase.cs

A base class for an MVC controller without view support.It is used on Web api in ASP .Net Core.

Following components don’t exist in ASP.NET Core:

1.ApiController class
2.System.Web.Http namespace
3.IHttpActionResult interface

Leave a comment