public static SharedFileHistory GetHistoryFile(int historyFileId) { SharedFileHistory historyFile = null; using (IDataReader reader = DBSharedFiles.GetHistoryFile(historyFileId)) { if (reader.Read()) { historyFile = new SharedFileHistory(); historyFile.FriendlyName = reader["FriendlyName"].ToString(); historyFile.ServerFileName = reader["ServerFileName"].ToString(); } } return(historyFile); }
public static SharedFileHistory GetHistoryFile(int historyFileId) { SharedFileHistory historyFile = null; using (IDataReader reader = DBSharedFiles.GetHistoryFile(historyFileId)) { if (reader.Read()) { historyFile = new SharedFileHistory(); historyFile.FriendlyName = reader["FriendlyName"].ToString(); historyFile.ServerFileName = reader["ServerFileName"].ToString(); } } return historyFile; }