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