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); }
public ActionResult RemoveBookmarks(BookmarkRemoveModel model) { bookmarks.Remove(model); return(Ok()); }