namespace Netina.Repository.Handlers.Faqs; public class DeleteFaqCommandHandler(IMartenRepositoryWrapper martenRepositoryWrapper) : IRequestHandler { public async Task Handle(DeleteFaqCommand request, CancellationToken cancellationToken) { var ent = await martenRepositoryWrapper.SetRepository().GetEntityAsync(request.Id, cancellationToken); await martenRepositoryWrapper.SetRepository().RemoveEntityAsync(ent, cancellationToken); return true; } }