user12365268
user12365268

Reputation:

Is there any way to use ASP.NET CORE MVC and WEB API together?

I am new to ASP.NET CORE and interested in how MVC and WEB API could be combined together? For example is there any way to use WEB API for back-end and MVC for front-end? The application should be simple CRUD app.

Upvotes: 0

Views: 214

Answers (1)

Claus H
Claus H

Reputation: 519

Easiest way is to create an MVC application.

Just create an api-controller inside and you have both!

A web api is just MVC, without the V, that is a model and a controller, no view.

Upvotes: 3

Related Questions