コード例 #1
0
        public ActionResult <Tour> GetById(int id)
        {
            var tour = repository.FindById(id);

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

            return(Ok(tour));
        }