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