File ->New->Project
Note: Always select project when working with mvc (there is no option to work with file->new ->website) in MVC
Another Window will be displayed asking for the type of MVC Application we want to create
Select Empty and click on Ok
Now the solution Explorer will be
Now Right Click on Controller -àAdd
Name of the controllerà
Controller Name: DemoController
Template : Empty MVC Controller and click on Add
Now Run the program
Demo is the name of the controller and Welcome is the method name
In mvc request should always go from controller and controller responded back.
No comments:
Post a Comment
Thank you for visiting my blog