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