I'm making an MVC website. Here's what I've planned to do earlier:
Data Access Layer
^
|
Business Layer
^
|
Web API 2 <-- Apps or whatever
^
|
MVC5 Website
But I think the following would be a better idea, because since the website and the WebAPI are going to be on the same server in my case, I thought it would make no sense for the website to parse the JSON response of the API.
Data Access Layer
^
|
Business Layer <-- Web API <-- Apps or whatever
^
|
MVC5 Website
I am completely new to Web APIs (never done WebAPI or WCF before) and I don't really know what approach to take.
So here are my questions
1. I need a chart (like the ones I've made) representing a better solution with explanation
2. A Project structure for the Visual Studio 2013 Solution that you would recommend
Please note that I have planned to use VS2013's new ASP.NET App project template - not the VS2012 type web templates. Answer keeping this in mind.
A better and descriptive answer is most welcome