 |
Serializing Entity Framework objects to JSON in ASP.NET Web API - StrathWeb
Great article. If you wanted you could also use a viewmodel approach. While you are returning a view per se, you return a model designed around what you want exposed in the API. public list Get() {var urls = db.Urls.Include(“Tags”).Select(i => new ViewMod
www.strathweb.com |
 |