コード例 #1
0
        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();
        }
コード例 #2
0
 public bool CreateBookmark(Bookmark bookmark)
 {
     try
     {
         _bookmarkRepo.Insert(bookmark);
         return true;
     }
     catch (Exception ex)
     {
         HandleLogging.LogMessage(ex, "CreateBookmark", 1, WebOperationContext.Current);
         return false;
     }
 }
コード例 #3
0
 public bool CreateBookmark(Bookmark bookmark)
 {
     return new UserService().CreateBookmark(bookmark);
 }
コード例 #4
0
 public void Insert(Bookmark bookmark)
 {
     db.Bookmarks.Add(bookmark);
     db.SaveChanges();
 }
コード例 #5
0
 public bool UpdateBookmark(Bookmark bookmark)
 {
     return new UserService().UpdateBookmark(bookmark);
 }