public static List <Bookmark> GetAll() { var db = HohoemaLiteDb.GetLocalLiteRepository(); return(db.Fetch <Bookmark>()); }
public static bool Remove(Bookmark bookmark) { var db = HohoemaLiteDb.GetLocalLiteRepository(); return(db.Delete <Bookmark>(bookmark.Id)); }
public static List <Bookmark> GetAll(BookmarkType bookmarkType) { var db = HohoemaLiteDb.GetLocalLiteRepository(); return(db.Fetch <Bookmark>(x => x.BookmarkType == bookmarkType)); }
public static Bookmark Get(BookmarkType bookmarkType, string content) { var db = HohoemaLiteDb.GetLocalLiteRepository(); return(db.SingleOrDefault <Bookmark>(x => x.BookmarkType == bookmarkType && x.Content == content)); }
public static bool Delete(Feed feedGroup) { var db = HohoemaLiteDb.GetLocalLiteRepository(); return(db.Delete <Feed>(feedGroup.Id)); }