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:
@@ -2,6 +2,9 @@ using MediatR;
|
||||
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user