wip league admin tools
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
+# View Models
|
||||
# View Models
|
||||
|
||||
## Definition
|
||||
|
||||
@@ -59,6 +59,7 @@ that logic belongs in the Core, not here.
|
||||
## Creation Rules
|
||||
|
||||
- View Models are created from API DTOs
|
||||
- DTOs never reach pages/components; map DTO → ViewModel in website services
|
||||
- UI components must never construct View Models themselves
|
||||
- Construction happens in services or presentation layers
|
||||
- The UI only consumes View Models, never DTOs
|
||||
|
||||
Reference in New Issue
Block a user