asp.net - Approach for Master/Parent View with Detail/Child as Partial View -
I am starting with asp.NET MVC 5
Suppose I have the following structure in my project
'PURE' model:
class guardian child child
Model for view
class guardian model class childvive model
view
Parents & lt; Parentviewmodel & gt; _ChildPartial & LT; ChildViewModel & gt; Currently, I am considering the following:
- As a property in
ParentViewModel
ChildViewModel
.
class ParentViewModel {... ChildViewModel cvm; ...}
- Then, pass
Balveau model
as an argument for the partial
view: < / Li>
@ModelParent module ... @HTMLPartial ("_Conal-Partial", New Videadatadication (model.cvm)) ...
Is anyone else doing the right way to do this?
Comments
Post a Comment