/// <summary> /// Get all Tool objects stored in the Database /// </summary> /// <returns></returns> public IHttpActionResult GetAllTools() { ToolService toolService = CreateToolService(); var tool = toolService.GetAllTools(); return(Ok(tool)); }
/// <summary> /// 获取所有的工具 /// </summary> /// <returns></returns> public List <Tool> GetAllTools(int flag) { return(ts.GetAllTools(flag)); }