0
我想要返回一個複雜的對象與Linq.Dynamic包括,當我要從WebAPI返回它我看到對象良好形成,但當我看到它在響應我沒有看到我假裝發送的清單。web api return複雜的對象沒有被序列化
return await context.Customers
.Include(c => c.ListOfPhones).FirstOrDefault(c => c.customerId == customerId);
有人能幫助我嗎?