I have a small api with these models with ef-core

```
public class AppUser : IdentityUser
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Company { get; set; }
    public ICollection<Account> Accounts { get; set; }
}

public class Account
{
    public int id { get; set; }
    public AppUser User { get; set; }
    public string AccountNumber { get; set; }
}

```

and I have a controller get function:

```
[HttpGet]
public async Task<IActionResult> Home()
{
    // retrieve the user info
    //HttpContext.User
    var userId = _caller.Claims.Single(c => c.Type == "id");
    var user = await _appDbContext.Users.SingleAsync(c => c.Id == userId.Value);            

    return new OkObjectResult(new
    {
        Message = "This is secure API and user data!",
        user.FirstName,
        user.LastName,
        user.Accounts
    });
}

```

How do I get the controller to return the list of accounts? In debug I can see the "accounts" variable with the correct data, I'm just not sure on how to format that var and return it in the api 

I am currently recievng: 

```
{
"message": "This is secure API and user data!",
"firstName": "Bill",
"lastName": "Johnson",
"serviceAccounts": null
}

```

UPDATE: So I ran the app using the dotnet command line and got

```
{"firstName":"Bill","lastName":"Johnson","serviceAccounts":[{"id":1,"camsUser":{"firstName":"Bill","lastName":"Johnson","company":null

```