Add optional ResultType to InsertResultCommand

Added a nullable Type property of ResultType to InsertResultCommand for enhanced result categorization. Also included the required using directive for ReC.Domain.Constants.
This commit is contained in:
2026-03-25 11:02:35 +01:00
parent 6082a637fe
commit e04e054151

View File

@@ -1,5 +1,6 @@
using MediatR;
using ReC.Application.Common.Procedures.InsertProcedure;
using ReC.Domain.Constants;
namespace ReC.Application.Results.Commands;
@@ -11,6 +12,7 @@ public record InsertResultCommand : IInsertProcedure
public string? Body { get; set; }
public string? Info { get; set; }
public string? Error { get; set; }
public ResultType? Type { get; set; }
}
public class InsertResultProcedureHandler(ISender sender) : IRequestHandler<InsertResultCommand, long>