Click here to Skip to main content
15,888,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
how can i sen two object Model to view in asp.net mvc 4?
for example i have two different Query :
C#
public ActionResult Index()
       {


           var model1 = from r in _db.Restaurants
                       orderby r.Name ascending

                       select r;
           var model2 = from r in _db.Reviews
                       orderby r.Name ascending

                       select r;

         //how send model1 and model2 to View ?
           return View(?);
       }

how send model1 and model2 to View ?
And How show them in view ?
Posted

1 solution

 
Share this answer
 
Comments
Nisarg Desai 27-Mar-14 4:30am    
Use Bellow Link

http://www.codeproject.com/Articles/193537/C-Tuples

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900