예제 #1
0
 public async Task <IEnumerable <Item> > GetAllItemsInList(int id)
 {
     return(await _context.Set <Item>()
            .Where(i => i.List.Id == id)
            .ToListAsync());
 }
예제 #2
0
 public async Task <IEnumerable <List> > GetAll()
 {
     return(await _context.Set <List>().ToListAsync());
 }