コード例 #1
0
        public async Task <Unit> Handle(DeleteStopwordCommand request, CancellationToken cancellationToken)
        {
            await _stopwordService.DeleteStopword(request.Id);

            return(Unit.Value);
        }
コード例 #2
0
        public IActionResult Delete(Guid id)
        {
            var stopwords = _stopwordService.DeleteStopword(id);

            return(Ok(stopwords));
        }