From 9f175bc4e959f9259b6e9ba4a5dbe9c66ab4340e Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 16:32:58 +0200 Subject: [PATCH] feat(State): Erstellen, Lesen und Aktualisieren von DTOs unter Verwendung von Basis-DTOs zum Aktualisieren und Erstellen. --- .../DTO/ProfileObjState/ProfileObjStateDto.cs | 5 +++-- WorkFlow.Application/DTO/State/StateCreateDto.cs | 4 ++++ WorkFlow.Application/DTO/State/StateCreateUpdateDto.cs | 7 +++++++ WorkFlow.Application/DTO/State/StateDto.cs | 4 ++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 WorkFlow.Application/DTO/State/StateCreateDto.cs create mode 100644 WorkFlow.Application/DTO/State/StateCreateUpdateDto.cs create mode 100644 WorkFlow.Application/DTO/State/StateDto.cs diff --git a/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs index 6de4464..d54be30 100644 --- a/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs +++ b/WorkFlow.Application/DTO/ProfileObjState/ProfileObjStateDto.cs @@ -1,5 +1,6 @@ using DigitalData.UserManager.Application.DTOs.User; using WorkFlow.Application.DTO.Profile; +using WorkFlow.Application.DTO.State; namespace WorkFlow.Application.DTO.ProfileObjState { @@ -14,6 +15,6 @@ namespace WorkFlow.Application.DTO.ProfileObjState string? State3 = null, string? State4 = null, ProfileDto? Profile = null, - UserReadDto? User = null - /*StateDto? State = null*/); + UserReadDto? User = null, + StateDto? State = null); } \ No newline at end of file diff --git a/WorkFlow.Application/DTO/State/StateCreateDto.cs b/WorkFlow.Application/DTO/State/StateCreateDto.cs new file mode 100644 index 0000000..ecc8a8a --- /dev/null +++ b/WorkFlow.Application/DTO/State/StateCreateDto.cs @@ -0,0 +1,4 @@ +namespace WorkFlow.Application.DTO.State +{ + public record StateCreateDto(string IntlState) : BaseCreateDto; +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/State/StateCreateUpdateDto.cs b/WorkFlow.Application/DTO/State/StateCreateUpdateDto.cs new file mode 100644 index 0000000..f575cd7 --- /dev/null +++ b/WorkFlow.Application/DTO/State/StateCreateUpdateDto.cs @@ -0,0 +1,7 @@ +namespace WorkFlow.Application.DTO.State +{ + /// + /// This Data Transfer Object (DTO) serves as a placeholder and does not support updates. + /// + public record StateCreateUpdateDto; +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/State/StateDto.cs b/WorkFlow.Application/DTO/State/StateDto.cs new file mode 100644 index 0000000..455c34c --- /dev/null +++ b/WorkFlow.Application/DTO/State/StateDto.cs @@ -0,0 +1,4 @@ +namespace WorkFlow.Application.DTO.State +{ + public record StateDto(int Id, string IntlState, string AddedWho, DateTime AddedWhen); +} \ No newline at end of file