开发者

two Objects in same json return

开发者 https://www.devze.com 2023-01-25 03:52 出处:网络
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()???

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

精彩评论

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