經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供