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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -