Good day! There was another question. There is an asp.net mvc application that works with a certain database (sql server). And there is another application for which you need to give a certain api for working with the first application (by and large with its database). It is assumed that api should be a set of http methods that allow to receive a response in json format. It begs the use of technology ASP.NET Web Api, about which I heard earlier. The problem is this. I know almost nothing about this technology (well, just that it makes it quite easy and convenient to create such api and more "light" compared to wcf). So far, I see a simpler alternative for me in the form of creating an additional controller in my asp.net mvc application with actions that return JsonResult. Well, in general, such a simple implementation of api. The advantage of this approach for me is that in this case you will not have to create a new project and deploy it separately (a trifle but still) and also that in the mvc application data access occurs via orm and in the case of web api you will somehow duplicate this access code in the web api project.
Now the question itself: are there any significant advantages to the web api technology for solving this problem? Or, on the contrary, do the approach with a separate controller and actions returning JsonResult have any significant drawbacks for solving this task? It’s just that I’m wondering if once there is a technology like WebApi, it’s probably a little silly to implement your api using such a handicraft method as simple Json-action games? Please set the right path! thank you in advance!