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