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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user