public async override Task <List <ApplicationInformationHeader> > GetAll() { var results = await context.Set <ApplicationInformationHeader>().ToListAsync(); foreach (var result in results) { result.NumberOfRequests = await context.Entry(result).Collection(b => b.FeatureRequests).Query().CountAsync(); } return(results); }
public virtual Task <List <T> > GetAll() { return(_context.Set <T>().ToListAsync()); }