feat(State): Erstellen, Lesen und Aktualisieren von DTOs unter Verwendung von Basis-DTOs zum Aktualisieren und Erstellen.

This commit is contained in:
Developer 02 2024-10-23 16:32:58 +02:00
parent 1453f9adb1
commit 9f175bc4e9
4 changed files with 18 additions and 2 deletions

View File

@ -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);
}

View File

@ -0,0 +1,4 @@
namespace WorkFlow.Application.DTO.State
{
public record StateCreateDto(string IntlState) : BaseCreateDto;
}

View File

@ -0,0 +1,7 @@
namespace WorkFlow.Application.DTO.State
{
/// <summary>
/// This Data Transfer Object (DTO) serves as a placeholder and does not support updates.
/// </summary>
public record StateCreateUpdateDto;
}

View File

@ -0,0 +1,4 @@
namespace WorkFlow.Application.DTO.State
{
public record StateDto(int Id, string IntlState, string AddedWho, DateTime AddedWhen);
}