using ODMO.Commons.Repositories.Admin; using MediatR; namespace ODMO.Application.Admin.Commands { public class DeleteSummonCommandHandler : IRequestHandler { private readonly IAdminCommandsRepository _repository; public DeleteSummonCommandHandler(IAdminCommandsRepository repository) { _repository = repository; } public async Task Handle(DeleteSummonCommand request, CancellationToken cancellationToken) { await _repository.DeleteSummonAsync(request.Id); return Unit.Value; } } }