public async Task <Unit> Handle(DeleteStopwordCommand request, CancellationToken cancellationToken) { await _stopwordService.DeleteStopword(request.Id); return(Unit.Value); }
public IActionResult Delete(Guid id) { var stopwords = _stopwordService.DeleteStopword(id); return(Ok(stopwords)); }