Difference between ApiController and Controller in ASP.NET MVC

I’ve been playing around with ASP.NET MVC 4 beta and I see two types of controllers now: ApiController and Controller.

I’m little confused at what situations I can choose a particular controller.

For ex: If I want to return a view then I’ve to use ApiController or the ordinary Controller? I’m aware that the WCF Web API is now integrated with MVC.

Since now we can use both controllers can somebody please point at which situations to go for the corresponding controller.

8 Answers
8

Leave a Comment