Click here to Skip to main content
15,921,454 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
what this line means
in cshtml file
 @model PetStore.ViewModels.ShopOnlineView
Posted

The @model directive provides a cleaner and more concise way to reference strongly-typed models from view files.

For more info kindly refer: Asp.net MVC 3 New Model Directive Support In Razor
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900