示例#1
0
        /// <summary>
        /// Get a Tool from the Database specified by the parameter id
        /// </summary>
        /// <param name="id">The id of the Tool to return from the Database</param>
        /// <returns></returns>
        public IHttpActionResult Get(int id)
        {
            ToolService toolService = CreateToolService();
            var         tool        = toolService.GetFullToolDetailByID(id);

            return(Ok(tool));
        }