Refactor IUpdateProcedure to generic with Id and Data props

Changed IUpdateProcedure to a generic interface IUpdateProcedure<T>, adding Id (long) and Data (T) properties for improved type safety and flexibility in update procedures. The interface continues to inherit from IRequest<int>.
This commit is contained in:
2026-03-24 11:10:47 +01:00
parent eff6350d77
commit b3bb7144ef

View File

@@ -2,6 +2,9 @@ using MediatR;
namespace ReC.Application.Common.Procedures.UpdateProcedure; namespace ReC.Application.Common.Procedures.UpdateProcedure;
public interface IUpdateProcedure : IRequest<int> public interface IUpdateProcedure<T> : IRequest<int>
{ {
public long Id { get; set; }
public T Data { get; set; }
} }