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); } } }
public static bool AddVideoWatchRecord(ViewPostHelperClass mo) { using (var conn = GetDbConnection()) { var count = conn.Insert(mo); if (count == 1) { return(true); } else { return(false); } } }