public IActionResult Delete(string id) { ToolType toolType = _db.ReadToolType(id); if (toolType != null) { //_dbs.DeleteToolTypeSearch(toolType.Name); _dbs.DeleteToolTypeSearchByRefId(toolType.Id); _db.DeleteToolType(id); } return(Ok(toolType)); }
public IActionResult Delete(string id) { ToolType toolType = _db.ReadToolType(id); if (toolType != null) { //_dbs.DeleteToolTypeSearch(toolType.Name); _dbs.DeleteToolTypeSearchByRefId(toolType.Id); _db.DeleteToolType(id); } return(Ok(toolType)); }