User1242168447 posted
Hi I'm new to ASP.Net Core,
I just want to know more in detail, the difference between an ASP.Net Core MVC 3 template and ASP.Net Core Web API template.
I'm a bit confused as most of the time, if I want to create a web api, I firstly create a ASP.Net Core MVC or Razor project like I saw on Microsoft online Documentation, then I just add a web api (right-click the project \ Add \ New Scaffolded Item... \
Web API \ Web API 2 Controller with actions, using Entity Framework).
Today I open VS, then I see a WebAPI template... after choosing it, I wait it to open, then I see that it has a lot of files, and it's seems more complex than a regular ASP.Net Core MVC template.
Now I got confused, the web api template is really confusing me.
In brief, what is the best way to create a webapi in asp.net core 3 ??
Do I always need to pass thru MVC template and add a web api or I only need to go straight to webapi template ?