public int UpdateBookmark(Bookmark bookmark) { db.Entry(bookmark).State = EntityState.Modified; return db.SaveChanges(); }
public int InsertBookmarks(Bookmark bookmark) { db.BookmarkSet.Add(bookmark); return db.SaveChanges(); }
public int UpdateBookmark(Bookmark bookmark) { db.Entry(bookmark).State = EntityState.Modified; return db.SaveChanges(); }
public int InsertBookmarks(Bookmark bookmark) { db.BookmarkSet.Add(bookmark); return db.SaveChanges(); }