Updated IInsertProcedure and all implementations to accept an optional 'addedWho' parameter in ToObjectProcedure, defaulting to "Rec.API". This enables tracking of the entity responsible for insert operations.
19 lines
527 B
C#
19 lines
527 B
C#
namespace ReC.Application.Common.Procedures.InsertProcedure;
|
|
|
|
public record InsertResultProcedure : IInsertProcedure
|
|
{
|
|
public long? ActionId { get; set; }
|
|
public short? StatusId { get; set; }
|
|
public string? Header { get; set; }
|
|
public string? Body { get; set; }
|
|
|
|
public InsertObjectProcedure ToObjectProcedure(string addedWho = "Rec.API")
|
|
{
|
|
return new InsertObjectProcedure
|
|
{
|
|
Entity = "RESULT",
|
|
Result = this,
|
|
AddedWho = addedWho
|
|
};
|
|
}
|
|
} |