I am testing the new web api from asp.net mvc 4, I don' t see much advantages over a current action controller call from existing asp.net mvc 3.
action controller from mvc 3 can return json very much the same manner as web api.
I have 2 questions concerning the web api:
- When should we use web api over standard action controller jsonresults ?
- How can we protect the web api, with granted access from differents plateforms ( authorize mobiles apps, pr other websites ) ?
Thanks