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)); }
public async virtual Task <List <Bookmark> > GetBookmarksAsync() { return(await Bookmarks .Include(b => b.Resource) .Include(b => b.User) .Include(b => b.Tags) .AsNoTracking() .ToListAsync()); }