Example #1
0
        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);
        }
Example #2
0
        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;
        }