Open
Description
I've come here from your presentation of "Vertical Slice Architecture" at NDC Sydney.
I've noticed that all the codes strictly related to accomplishing a specific request are in the same folder/file.
For example all the code related to Create student
is into Create.cshtml.cs file, that contains:
- user interface specification,
- command model,
- command validator,
- command handler,
- command mapper to an entity.
I was wondering about "What about if I want to create a WebApi/Blazor/(another user interface) entry point with the same request? Do I have to 'copy and paste' the code inside the Create.cshtml.cs file or can I take out this logic and create a common endpoint?"
Metadata
Metadata
Assignees
Labels
No labels