public IActionResult Get(int id) { var locations = repo.GetAllByUser(id); if (locations != null) { return(Ok(locations)); } else { return(NotFound()); } }