Ejemplo n.º 1
0
        /// <summary>
        /// Run ElectionCandidate_SelectBy_CandidateId, and return results as a list of ElectionCandidateRow.
        /// </summary>
        /// <param name="fldCandidateId">Value for CandidateId</param>
        /// <returns>A collection of ElectionCandidateRow.</returns>
        public static List <ElectionCandidateContract> SelectBy_CandidateIdNow(int fldCandidateId
                                                                               )
        {
            var driver = new ElectionCandidateLogic();

            driver.SelectBy_CandidateId(fldCandidateId
                                        );
            return(driver.Results);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Run ElectionCandidate_SelectBy_CandidateId, and return results as a list of ElectionCandidateRow.
        /// </summary>
        /// <param name="fldCandidateId">Value for CandidateId</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of ElectionCandidateRow.</returns>
        public static List <ElectionCandidateContract> SelectBy_CandidateIdNow(int fldCandidateId
                                                                               , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new ElectionCandidateLogic();

            driver.SelectBy_CandidateId(fldCandidateId
                                        , connection, transaction);

            return(driver.Results);
        }