c# - What does the @model keyword do in an ASP.NET MVC View? -
i have doubts how work @model statement cshtml view. in code, have this:
@model mycorp.earlywarnings.webinterface.models.homepagemodel
so do?
i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?
another doubt is: populate model? populated specific controller of view?
i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?
yes, have interpretted correctlty.
is populated specific controller of view?
yes, populated specific action of specific controller view.
Comments
Post a Comment