Files
predavanja/Events-WebApi/Events.WebAPI.Contract/Queries/Generic/DoesItemExistsQuery.cs
2026-05-10 23:39:55 +02:00

11 lines
262 B
C#

using Events.WebAPI.Contract.DTOs;
using MediatR;
namespace Events.WebAPI.Contract.Queries.Generic;
public class DoesItemExistsQuery<TDto, TPK> (TPK id) : IRequest<bool>, IHasIdAsPK<TPK>
where TPK : IEquatable<TPK>
{
public TPK Id { get; set; } = id;
}