Beispiel #1
0
        public IHttpActionResult ByAge(int age)
        {
            var horse = _horseService.GetHorsesByAge(age);

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

            return(Ok(horse));
        }