Returning Multiple Lists in ASP.NET MVC (C#) -


I am new to ASP.NET Architectural MVC and I am trying to decide how many sets Can I return data to see?

  public performance index (string sort) {var actions = one by dbActions.Actions in order by a.action_name ascending selection one; See Return (actions.ToList ()); }  

This code works very well to return a dataset. I have the position that I have got a list of objects, each of which is a subset of objects that I want to display in the hierarchy on the output page. I am not sure whether I am looking in a quick way or the right way, thoughts on both the paths will be highly appreciated.

Thank you!

You can pass them through ViewData, passed from an object controller to the view . The administrator will look like this:

 See  data ["action list"] = verbs. Toolist ();  

Recovering it from view:

   

Comments