/// <summary> /// Insert a record into the database /// </summary> /// <param name="record">The record</param> public static void InsertRecord(DownloadHistory historyRecord) { if (historyRecord != null && DLHistory.GetHistory().Where(v => v.VideoId == historyRecord.VideoId).ToList().Count <= 0) { DLHistory.InsertRecord(historyRecord); } }
/// <summary> /// Gets all records in the database /// </summary> /// <returns></returns> public static List <DownloadHistory> GetHistory() { return(DLHistory.GetHistory()); }