MVC

Creating Your First Application

  • Click New Project, then select Visual C# on the left, then Web and then select ASP.NET  Web Application. Name your project MVC(USAMA ASIF) and then click OK.




  • In the New ASP.NET Project dialog, click MVC and then click OK.


Adding Model Classes

  • In Solution Explorer, right click the Models folder, select Add, and then select Class.


  • creating author class with some attributes.



Adding a Controller

  • right click on model folder in solution explorer and add controller.




Adding a View

  • right click on model and add view






Comments

Popular Posts