From 1e6d247817a11175ec22daad3c1a02750b5457bb Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 15:10:37 +0200 Subject: [PATCH] feat(Profile): Erstellen, Lesen und Aktualisieren von DTOs unter Verwendung von Basis-DTOs zum Aktualisieren und Erstellen. --- WorkFlow.Application/DTO/Profile/ProfileCreateDto.cs | 4 ++++ WorkFlow.Application/DTO/Profile/ProfileDto.cs | 12 ++++++++++++ WorkFlow.Application/DTO/Profile/ProfileUpdateDto.cs | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 WorkFlow.Application/DTO/Profile/ProfileCreateDto.cs create mode 100644 WorkFlow.Application/DTO/Profile/ProfileDto.cs create mode 100644 WorkFlow.Application/DTO/Profile/ProfileUpdateDto.cs diff --git a/WorkFlow.Application/DTO/Profile/ProfileCreateDto.cs b/WorkFlow.Application/DTO/Profile/ProfileCreateDto.cs new file mode 100644 index 0000000..ad13f1a --- /dev/null +++ b/WorkFlow.Application/DTO/Profile/ProfileCreateDto.cs @@ -0,0 +1,4 @@ +namespace WorkFlow.Application.DTO.Profile +{ + public record ProfileCreateDto(string IntlName, int ExtId1, bool Active, byte TypeId) : BaseCreateDto; +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/Profile/ProfileDto.cs b/WorkFlow.Application/DTO/Profile/ProfileDto.cs new file mode 100644 index 0000000..68c4d66 --- /dev/null +++ b/WorkFlow.Application/DTO/Profile/ProfileDto.cs @@ -0,0 +1,12 @@ +namespace WorkFlow.Application.DTO.Profile +{ + public record ProfileDto(int Id, + string IntlName, + int ExtId1, + bool Active, + string AddedWho, + DateTime AddedWhen, + byte TypeId, + string? ChangedWho = null, + DateTime? ChangedWhen = null); +} \ No newline at end of file diff --git a/WorkFlow.Application/DTO/Profile/ProfileUpdateDto.cs b/WorkFlow.Application/DTO/Profile/ProfileUpdateDto.cs new file mode 100644 index 0000000..2ff129a --- /dev/null +++ b/WorkFlow.Application/DTO/Profile/ProfileUpdateDto.cs @@ -0,0 +1,4 @@ +namespace WorkFlow.Application.DTO.Profile +{ + public record ProfileUpdateDto(string IntlName, int ExtId1, bool Active, byte TypeId) : BaseUpdateDto; +} \ No newline at end of file