Example #1
0
        /// <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));
        }
Example #2
0
 /// <summary>
 /// 获取所有的工具
 /// </summary>
 /// <returns></returns>
 public List <Tool> GetAllTools(int flag)
 {
     return(ts.GetAllTools(flag));
 }