How do I return two parameters/objects in asp.net mvc? -


below how controller looks like. have 2 tables in 1 index. return objlistofitemsdetails , objlistofitemsdetailsmb. 1 can return 1 object. thats why commented 'return table two'. can show me right way this? thanks

       {             listofitems objlistofitemsdetails = new listofitems();    //table 1             objlistofitemsdetails = arshareddal.gettasklistinfo();   //table 1               listofitems objlistofitemsdetailsmb = new listofitems();       //table 2             objlistofitemsdetailsmb = arshareddal.getdashboardinfomb();    //table 2               return view(objlistofitemsdetails);                     //return table 1             //return view(objlistofitemsdetailsmb);                 //return table 2           } 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -