```
public class BerichtenOphalen
{
    public List<Bericht> berichten = new List<Bericht>();

    public List<Bericht> getBerichten(string email)
    {
        var client = new RestClient("http://localhost:8080/ewm/resources");
        client.Authenticator = new HttpBasicAuthenticator("lode_vl@hotmail.com",     "123456");
        var request = new RestRequest("berichten/ontvanger/{id}", Method.GET);
        request.AddUrlSegment("id", email);
        List<Bericht> berichten = new List<Bericht>();
        client.ExecuteAsync(request, response =>
        {
            if (response != null)
            {
                System.Diagnostics.Debug.WriteLine("not null" + response.Content.ToString());
                this.berichten = JsonConvert.DeserializeObject<List<Bericht>>(response.Content);
                System.Diagnostics.Debug.WriteLine("\n\n" +berichten.Count);
            }   
        });
        return berichten;
    }

```

This class works, But i cant figure out how to return the List that is filled with objects.

```
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
    BerichtenOphalen req = new BerichtenOphalen();
    this.DataContext = req.getBerichten("lode_vl@hotmail.com");
    base.OnNavigatedTo(e);
} 

```

This is where i try to get my list to use as datacontext for my app, there is never any data in it.