Refactor: split insert procedures into separate files

Refactored insert procedure-related classes by moving each record type (Action, Endpoint, EndpointAuth, Profile, Result, EndpointParams) and the IInsertProcedure interface into their own files under the new InsertProcedure namespace. Updated InsertObjectProcedureValidator to use the new namespace. This improves code organization, readability, and maintainability.
This commit is contained in:
2026-01-14 09:26:27 +01:00
parent 854e36e71f
commit d90c2fab96
9 changed files with 136 additions and 129 deletions

View File

@@ -0,0 +1,18 @@
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()
{
return new InsertObjectProcedure
{
Entity = "RESULT",
Result = this
};
}
}