开发者

two Objects in same json return

I have Categoreis and Locations

I would like return both in one method. 开发者_开发知识库

How can make a use of both Categories.ToList() and Locations.ToList()???

What type of object should I return?


Create a class that contains both Categories and Locations so you're only returning one object rather than two.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜