How Can I Use Two Models In Same Controller(Using Entityframwork) And Use Each Model In Different Action?

Im using entity frame work, and i created a new table in SQL database and updated the .edmx file in visual studio, this displays a dialog whereby your can select the table you want to include, in my case News, and in turn created a new model called News in my project which represents the new table, then i made few actions for creating and viewing News.

1 Like