Question: I have run into the problem of sending data, a simple int type, from a dialogue fragment to all the fragments within a viewpager. I have an activity that hosts both the dialogue fragment and the viewpager. I know how to send data from the dialogue fragment to the activity using an interface defined in the dialogue fragment and implementing it within the activity itself. I was thinking maybe it had something to do with the onAttach method but i am not sure. i feel i am overlooking a simple solution here. please help! thanks!

Answer: 
First of,

The `Include()` method is used to load related data, not properties on related data. 
Which means, to load the name property of the related AplicantCompany and CreditorCompany on the entity Applications, your first query is correct.
It will include the name properties of both related entities

```
var result = context.Applications.Include(a=> a.AplicantCompany)
                .Include(c=>c.CreditorCompany)
                .ToList();

```

Then secondly, if you're using the async method ToListAsync() you need to await the task

```
[HttpGet("/api/applications")]
public async Task<IActionResult> GetApplications()
{
    var result = await context.Applications.Include(a=> a.AplicantCompany)
                .Include(c=>c.CreditorCompany)
                .ToListAsync();
    return Ok(result);
}

```
Your call to `ToListAsync` is async; but the invocation and the method itself are synchronous. Change to `ToList()` or (better) make everything else asynchronous as well