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.
精彩评论