Flesh out domain and start student commands

This commit is contained in:
Giovani
2019-04-24 17:50:37 +00:00
parent f603e94b5d
commit 17a15766ab
18 changed files with 648 additions and 197 deletions

View File

@@ -20,7 +20,11 @@ namespace BrightGlimmer.Services.Handlers.QueryHandlers
public async Task<IEnumerable<Student>> Handle(GetAllStudentsQuery request, CancellationToken cancellationToken)
{
return await repository.Get().ToListAsync();
return await repository.Get()
.Include(x => x.Phones)
.Include(x => x.Address)
.Include(x => x.AssignedCourses)
.ToListAsync();
}
}
}