WebApi + ClientApp, GraphQL, Reflection
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Events.WebAPI.Contract.Command;
|
||||
|
||||
public class AddCommand<TDto, TPK>(TDto dto) : IRequest<TPK>
|
||||
{
|
||||
public TDto Dto { get; set; } = dto;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using MediatR;
|
||||
|
||||
namespace MobilityOne.Common.Commands;
|
||||
|
||||
public class DeleteCommand<TDto, TPK>(TPK id) : IRequest
|
||||
{
|
||||
public TPK Id { get; set; } = id;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Events.WebAPI.Contract.Command;
|
||||
|
||||
public class UpdateCommand<TDto>(TDto dto) : IRequest
|
||||
{
|
||||
public TDto Dto { get; set; } = dto;
|
||||
}
|
||||
Reference in New Issue
Block a user