The web application template will create folders and import the material needed for the web application such as jquery, css, etc. Web api template will create folders and import material for web api. In addition, the controllers created by default will have different implementations, for example, the web application will return the views and the views will be created in the corresponding folder.
So, although they come from the same controllers, each type of project requires different dependencies.
If I were you, I would go and create one for each type and see the difference.
If you want to have both a web application and a web application in one project, use areas . Thus, your site and api will have separate controllers, folders and models. Also, if you want to separate them in the future, it will be easy to do.
source share