예제 #1
0
        public ActionResult <TrainStop> GetStop(int id)
        {
            var ts = _trainStopService.GetById(id);

            if (ts == null)
            {
                return(new NotFoundResult());
            }

            return(ts);
        }
예제 #2
0
        public ActionResult <List <TrainStop> > GetById([FromRoute] int id)
        {
            var trains = _trainStopService.GetById(id);

            return(Ok(trains));
        }