public IActionResult Delete(string id) { var tool = _toolService.Get(id); if (tool == null) { return(NotFound()); } _toolService.Remove(tool.id); return(NoContent()); }