Exemple #1
0
        public async Task <ActionResult <Trip> > GetTripById(int id)
        {
            Trip comment = await _repository.FindTripAsync(id);

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

            return(comment);
        }