Exemplo n.º 1
0
        public IActionResult Delete(string id)
        {
            var thread = _threadService.Get(id);

            if (thread == null)
            {
                return(NotFound());
            }

            _threadService.Remove(thread.Id);

            return(NoContent());
        }