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.
This commit is contained in:
2026-03-30 13:21:48 +02:00
parent c64794755d
commit 6c9eab6df6

View File

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