Hemant
Hemant

Reputation: 23

Can we replace ASP.NET MVC with ASP.NET Web API

I am new to the ASP.NET Web API and while learning, a question comes in mind that can i replace ASP.NET MVC with ASP.NET WEB API .For instance let's say I am creating small application by using:

Now Can I use Web API instead of ASP.NET MVC and my new stack will be like:

Upvotes: 1

Views: 208

Answers (1)

A-A-ron
A-A-ron

Reputation: 559

Yes, you can. Might be recommended if you don’t plan on using any of the views that can be returned from MVC. With WebAPI you’ll be handling JSON in the client.

Upvotes: 1

Related Questions