Beispiel #1
0
        public ActionResult Get(int id)
        {
            if (!_rabbitService.RabbitFactExists(id))
            {
                return(StatusCode(StatusCodes.Status400BadRequest, "The rabbit could not be found"));
            }

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