Add UpdateResultProcedure record for result updates

Introduced a new `UpdateResultProcedure` record in the
`ReC.Application.Common.Procedures.UpdateProcedure` namespace.
This record implements the `IUpdateProcedure` interface and
includes properties for `ActionId`, `StatusId`, `Header`, and
`Body`.

Added a `ToObjectProcedure` method to convert the record into
an `UpdateObjectProcedure` instance, setting the `Entity` to
"RESULT", and allowing optional tracking of changes via the
`ChangedBy` method.
This commit is contained in:
Developer 02
2026-01-16 00:59:43 +01:00
parent 43cdef4910
commit 402990bd3c

View File

@@ -0,0 +1,19 @@
namespace ReC.Application.Common.Procedures.UpdateProcedure;
public record UpdateResultProcedure : IUpdateProcedure
{
public long? ActionId { get; set; }
public short? StatusId { get; set; }
public string? Header { get; set; }
public string? Body { get; set; }
public UpdateObjectProcedure ToObjectProcedure(long guid, string? changedWho = null)
{
return new UpdateObjectProcedure
{
Entity = "RESULT",
Guid = guid,
Result = this
}.ChangedBy(changedWho);
}
}