Web API with MVC Project
Visual Studio (2013/2015/2017/2019) includes Web API template which creates a new Web API project with ASP.NET MVC application and includes all the necessary references to get started.For this, open Visual Studio and click on File menu and click on New Project.
In the New Project popup, expand Visual C# and select Web node in the left pane. Select ASP.NET Web Application template in the middle pane and enter the name of a project and click OK.
Select Web API in the above popup. Notice that this has selected and disabled MVC and Web API checkboxes. It means that it will add necessary folders and references for both MVC and Web API.
#Web #API #Restful #Service #RestAPI #core #API2