Exemple #1
0
        public ActionResult <string> Get(int id)
        {
            var user = _userRepository.Get(id);

            user.VisitedCountries = _travelRepository.GetTravelsForUser(id).ToList();
            if (user != null)
            {
                return(Ok(user));
            }
            else
            {
                return(NotFound());
            }
        }