I have two different table and two different actionmethod for the single database. how can I include these table into a single view in @model? what can i do to get the result ?
Asked
Active
Viewed 273 times
-1
-
Are you ever going to bother to do any research before asking questions here! – Feb 10 '17 at 11:09
1 Answers
0
Collect your data into a single class from both the tables and return it from action. Define another class which will include both of these classes. Like,
Public Class Parent
{
public Class1 class1{get;set;}
public Class2 class2{get;set;}
}
You can make use of Dtos here.

Pavvy
- 353
- 3
- 6
- 15
-
how to restore a deleted folder that was installed using the nudget package manager – athira Feb 13 '17 at 06:54
-
@athira I tjhink you are asking this out of context. Still if you want to recreate that folder, then uninstall and install packages. And also enable autorestore missing package option from tools->setting – Pavvy Feb 13 '17 at 07:26