From 6c9eab6df64a87401ae9758ba20c5837c8ce263b Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 30 Mar 2026 13:21:48 +0200 Subject: [PATCH] Refactor ResultViewDto status and add info/error fields Replaced StatusCode with a RecStatus Status property in ResultViewDto. Added Info and Error string properties to provide additional result details. Imported ReC.Domain.Constants for RecStatus usage. --- src/ReC.Application/Common/Dto/ResultViewDto.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ReC.Application/Common/Dto/ResultViewDto.cs b/src/ReC.Application/Common/Dto/ResultViewDto.cs index 20d199e..230ae76 100644 --- a/src/ReC.Application/Common/Dto/ResultViewDto.cs +++ b/src/ReC.Application/Common/Dto/ResultViewDto.cs @@ -1,4 +1,6 @@ -namespace ReC.Application.Common.Dto; +using ReC.Domain.Constants; + +namespace ReC.Application.Common.Dto; public record ResultViewDto { @@ -14,7 +16,7 @@ public record ResultViewDto public string? ProfileName { get; init; } - public short? StatusCode { get; init; } + public RecStatus Status { get; set; } public string? StatusName { get; init; } @@ -22,6 +24,10 @@ public record ResultViewDto public string? Body { get; init; } + public string? Info { get; set; } + + public string? Error { get; set; } + public string? AddedWho { get; init; } public DateTime? AddedWhen { get; init; }