1

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:

  • UI Will be in : ASP.NET/HTML Controls, JavaScript,CSS.
  • Server side code : ASP.NET MVC.
  • Back End : SQL Server.

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

  • UI : HTML , JavaScript,CSS.
  • Server side code: ASP.NET Web API.
  • Back End : SQL Server.
1
  • 2
    if you are looking for yes/no answer, yes you can Commented Apr 27, 2019 at 12:52

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.