Moved Delete/Insert/UpdateEndpointProcedure classes from Common.Procedures to Endpoints.Commands namespace. Updated using directives accordingly for improved code organization and maintainability. No changes to class logic.
33 lines
784 B
C#
33 lines
784 B
C#
using ReC.Application.Common.Procedures.DeleteProcedure;
|
|
|
|
namespace ReC.Application.Endpoints.Commands;
|
|
|
|
public record DeleteEndpointProcedure : IDeleteProcedure
|
|
{
|
|
/// <summary>
|
|
/// Start GUID/ID (inclusive)
|
|
/// </summary>
|
|
public long Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// End GUID/ID (inclusive). If 0, will be set to Start value.
|
|
/// </summary>
|
|
public long End { get; set; }
|
|
|
|
/// <summary>
|
|
/// If true, delete even if dependent ACTION data exists
|
|
/// </summary>
|
|
public bool Force { get; set; }
|
|
|
|
public DeleteObjectProcedure ToObjectProcedure()
|
|
{
|
|
return new DeleteObjectProcedure
|
|
{
|
|
Entity = "ENDPOINT",
|
|
Start = Start,
|
|
End = End,
|
|
Force = Force
|
|
};
|
|
}
|
|
}
|