From 4126f984e41e6a2e1767fa22bee0adf8aa9a3a4c Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Mar 2026 11:06:07 +0100 Subject: [PATCH] Expand and refactor OutResDto for richer data support Refactored OutResDto to include additional properties such as Action, Profile, Status, and Type, and made several fields nullable. This enhances flexibility and allows for more comprehensive and optional data representation in API responses. --- src/ReC.Application/Common/Dto/OutResDto.cs | 24 +++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/ReC.Application/Common/Dto/OutResDto.cs b/src/ReC.Application/Common/Dto/OutResDto.cs index bad5f79..87a2820 100644 --- a/src/ReC.Application/Common/Dto/OutResDto.cs +++ b/src/ReC.Application/Common/Dto/OutResDto.cs @@ -1,10 +1,26 @@ -namespace ReC.Application.Common.Dto; +using ReC.Domain.Constants; + +namespace ReC.Application.Common.Dto; public record OutResDto { public long Id { get; set; } - public long ActionId { get; set; } + public long? ActionId { get; set; } + + public RecActionDto? Action { get; set; } + + public long? ProfileId { get; set; } + + public ProfileDto? Profile { get; set; } + + public string? ProfileName { get; set; } + + public short? StatusCode { get; set; } + + public string? StatusName { get; set; } + + public ResultType? Type { get; set; } public string? Header { get; set; } @@ -14,9 +30,9 @@ public record OutResDto public string? Error { get; set; } - public string AddedWho { get; set; } = null!; + public string? AddedWho { get; set; } - public DateTime AddedWhen { get; set; } + public DateTime? AddedWhen { get; set; } public string? ChangedWho { get; set; }