Пример #1
0
        /// <summary>
        /// Get Tools that are of a particular type and located in a particular zip
        /// </summary>
        /// <param name="type">The type of Tool to be returned from the Database</param>
        /// <param name="zip">The zip code for the tools we want returned</param>
        /// <returns></returns>
        public IHttpActionResult Get(int type, int zip)
        {
            ToolService toolService = CreateToolService();
            var         tool        = toolService.GetToolsByTypeAndZip(type, zip);

            return(Ok(tool));
        }