예제 #1
0
        public IActionResult Delete(string id)
        {
            var tool = _toolService.Get(id);

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

            _toolService.Remove(tool.id);

            return(NoContent());
        }