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