public ActionResult <TrainStop> GetStop(int id) { var ts = _trainStopService.GetById(id); if (ts == null) { return(new NotFoundResult()); } return(ts); }
public ActionResult <List <TrainStop> > GetById([FromRoute] int id) { var trains = _trainStopService.GetById(id); return(Ok(trains)); }