Example #1
0
        public IActionResult Get(int id)
        {
            var locations = repo.GetAllByUser(id);

            if (locations != null)
            {
                return(Ok(locations));
            }
            else
            {
                return(NotFound());
            }
        }