public void Update(Bookmark bookmark) { Bookmark rBookmark = GetBookmarkById(bookmark.ID); if (rBookmark == null) return; rBookmark.Description = bookmark.Description; rBookmark.IsActive = bookmark.IsActive; rBookmark.Title = bookmark.Title; db.SaveChanges(); }
public bool CreateBookmark(Bookmark bookmark) { try { _bookmarkRepo.Insert(bookmark); return true; } catch (Exception ex) { HandleLogging.LogMessage(ex, "CreateBookmark", 1, WebOperationContext.Current); return false; } }
public bool CreateBookmark(Bookmark bookmark) { return new UserService().CreateBookmark(bookmark); }
public void Insert(Bookmark bookmark) { db.Bookmarks.Add(bookmark); db.SaveChanges(); }
public bool UpdateBookmark(Bookmark bookmark) { return new UserService().UpdateBookmark(bookmark); }