//Gets all the users posts, userId sent to proxy method, API call made to get all posts with the userId from db public async void GetPostInfo() { var temp = await _postsProxy.GetPostsByUser(App.user.Id); //Makes the API call in the proxy if (temp != null) { if (temp.Count > 0) { foreach (var item in temp) //Foreach loop used to put each item from temp (List) into ObservableCollection { PostsMod.Add(item); } } else { return; //If temp is null, exit the method } } }