using MediatR; using Modules.Library.Application.Gateways; namespace Modules.Library.Application.Commands.Dictionaries.Genre; public class DeleteGenreCommand : IRequest { public Guid Id { get; set; } = default!; } public class DeleteGenreCommandHandler(IGenreGateway genreGateway) : IRequestHandler { public async Task Handle(DeleteGenreCommand request, CancellationToken cancellationToken) { await genreGateway.Delete(request.Id); return Unit.Value; } }