Exemplo n.º 1
0
 public List <ListViewModel> GetAllLists()
 {
     return(FilmHausDbContext.Lists
            .AsExpandable()
            .Select(ListQueryExtensions.GetListViewModel())
            .ToList());
 }
Exemplo n.º 2
0
 public List <ListViewModel> GetAllListsByUserId(string userId)
 {
     return(FilmHausDbContext.Lists
            .AsExpandable()
            .Where(l => l.Id == userId)
            .Select(ListQueryExtensions.GetListViewModel())
            .ToList());
 }