public async ValueTask Delete(MangasContext context, int accountId) { var bookmark = await context.Bookmarks.FirstAsync(b => b.Id == BookmarkId && b.AccountId == accountId); context.Remove(bookmark); }
public async ValueTask DeleteById(MangasContext context) { var bookmark = await context.Bookmarks.FirstAsync(b => b.Id == BookmarkId); context.Remove(bookmark); }