Refactor IInsertProcedure for MediatR compatibility

IInsertProcedure now inherits from IRequest<long> to integrate with MediatR's request/response pattern. Removed the ToObjectProcedure method and added the necessary MediatR using directive.
This commit is contained in:
2026-03-24 09:43:57 +01:00
parent 71430918ac
commit 246362812a

View File

@@ -1,6 +1,7 @@
namespace ReC.Application.Common.Procedures.InsertProcedure;
using MediatR;
public interface IInsertProcedure
namespace ReC.Application.Common.Procedures.InsertProcedure;
public interface IInsertProcedure : IRequest<long>
{
public InsertObjectProcedure ToObjectProcedure(string? addedWho = null);
}