Write following code to your view.

Now run application.(ctrl + F5).
Now write code in Index action for retrieve data from database.

Right click on Index action and Add View and write following code.

Now run application.(ctrl + F5).


Join the conversation! Your thoughts help the community grow.