/// <summary> /// Removes a record from the database /// </summary> /// <param name="record">the record you want to remove</param> public static void RemoveRecord(DownloadHistory historyRecord) { if (historyRecord != null && DLHistory.GetHistoryEntryById(historyRecord.Id) != null) { DLHistory.RemoveRecord(historyRecord); } }
/// <summary> /// Gets the history record from the database with the given id /// </summary> /// <param name="id">the unique id</param> /// <returns></returns> public static DownloadHistory GetHistoryEntryById(long id) { return(DLHistory.GetHistoryEntryById(id)); }