Пример #1
0
 public static bool UpdateVideoWatchRecord(ViewPostHelperClass mo)
 {
     using (var conn = GetDbConnection())
     {
         var count = conn.Execute("UPDATE ViewPostHelperClass SET Post=?,viewTime=? WHERE epId=?;", mo.Post, DateTime.Now.ToLocalTime(), mo.epId);
         if (count == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
Пример #2
0
 public static bool AddVideoWatchRecord(ViewPostHelperClass mo)
 {
     using (var conn = GetDbConnection())
     {
         var count = conn.Insert(mo);
         if (count == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }