Пример #1
0
        public ActionResult Get(int id)
        {
            if (!_dogService.DogFactExists(id))
            {
                return(StatusCode(StatusCodes.Status400BadRequest, "The dog could not be found"));
            }

            return(Ok(_dogService.GetById(id)));
        }