Beispiel #1
0
 public static bool Delete(NicoVideo video)
 {
     var db = HohoemaLiteDb.GetTempLiteRepository();
     {
         return(db.Delete <NicoVideo>(new BsonValue(video.RawVideoId)));
     }
 }
Beispiel #2
0
 public static bool AddOrUpdate(NicoVideo video)
 {
     var db = HohoemaLiteDb.GetTempLiteRepository();
     {
         video.LastUpdated = DateTime.Now;
         return(db.Upsert(video));
     }
 }