Example #1
0
        public bool Remove(BookmarkRemoveModel model)
        {
            context.Bookmarks.Remove(new BookmarkModel
            {
                Id       = model.Id,
                UserId   = model.UserId,
                DocId    = model.DocId,
                FolderId = model.FolderId
            });

            context.SaveChanges();
            return(true);
        }
Example #2
0
 public ActionResult RemoveBookmarks(BookmarkRemoveModel model)
 {
     bookmarks.Remove(model);
     return(Ok());
 }