示例#1
0
        /// <summary>
        /// Run Candidates_SelectAll, and return results as a list of CandidatesRow.
        /// </summary>

        /// <returns>A collection of CandidatesRow.</returns>
        public static List <CandidatesContract> SelectAllNow()
        {
            var driver = new CandidatesLogic();

            driver.SelectAll();
            return(driver.Results);
        }
示例#2
0
        /// <summary>
        /// Run Candidates_SelectAll, and return results as a list of CandidatesRow.
        /// </summary>

        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of CandidatesRow.</returns>
        public static List <CandidatesContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new CandidatesLogic();

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }