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.
38 lines
807 B
C#
38 lines
807 B
C#
using ReC.Domain.Constants;
|
|
|
|
namespace ReC.Application.Common.Dto;
|
|
|
|
public record ResultViewDto
|
|
{
|
|
public long Id { get; init; }
|
|
|
|
public long? ActionId { get; init; }
|
|
|
|
public RecActionViewDto? Action { get; init; }
|
|
|
|
public long? ProfileId { get; init; }
|
|
|
|
public ProfileViewDto? Profile { get; init; }
|
|
|
|
public string? ProfileName { get; init; }
|
|
|
|
public RecStatus Status { get; set; }
|
|
|
|
public string? StatusName { get; init; }
|
|
|
|
public string? Header { get; init; }
|
|
|
|
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; }
|
|
|
|
public string? ChangedWho { get; init; }
|
|
|
|
public DateTime? ChangedWhen { get; init; }
|
|
} |