Example #1
0
 public async virtual Task <Bookmark> GetBookmarkAsync(int id)
 {
     return(await Bookmarks
            .Include(b => b.Resource)
            .Include(b => b.User)
            .Include(b => b.Tags)
            .FirstOrDefaultAsync(b => b.Id == id));
 }
Example #2
0
 public async virtual Task <List <Bookmark> > GetBookmarksAsync()
 {
     return(await Bookmarks
            .Include(b => b.Resource)
            .Include(b => b.User)
            .Include(b => b.Tags)
            .AsNoTracking()
            .ToListAsync());
 }