示例#1
0
        public IHttpActionResult ByWeight(float weight)
        {
            var horses = _horseService.GetHorsesByWeight(weight);

            if (horses == null)
            {
                return(NotFound());
            }

            return(Ok(horses));
        }