view data fixes
This commit is contained in:
@@ -76,7 +76,7 @@ This repository distinguishes **Page DTO**, **ViewModel**, and **ViewData**:
|
||||
Rules (website):
|
||||
|
||||
1) View Models are created in client code only.
|
||||
2) View Models are created from Page DTOs.
|
||||
2) View Models are created from **ViewData** (not from DTOs).
|
||||
3) Templates MUST NOT accept View Models; Templates accept ViewData only.
|
||||
4) View Models MUST compose Display Objects and produce ViewData (primitive outputs only).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user