Esempio n. 1
0
        public IActionResult GetTrain(int id)
        {
            var train = _train.GetTrainView(id);

            if (train.TrainId == id)
            {
                return(Ok(train));
            }

            else
            {
                return(NotFound($"Train with id {id} was not found"));
            }
        }