Exemple #1
0
        /// <summary>
        /// Run Candidates_Search, and return results as a list of CandidatesRow.
        /// </summary>
        /// <param name="fldCandidateName">Value for CandidateName</param>
        /// <param name="fldSourceUrl">Value for SourceUrl</param>
        /// <returns>A collection of CandidatesRow.</returns>
        public static List <CandidatesContract> SearchNow(string fldCandidateName
                                                          , string fldSourceUrl
                                                          )
        {
            var driver = new CandidatesLogic();

            driver.Search(fldCandidateName
                          , fldSourceUrl
                          );
            return(driver.Results);
        }
Exemple #2
0
        /// <summary>
        /// Run Candidates_Search, and return results as a list of CandidatesRow.
        /// </summary>
        /// <param name="fldCandidateName">Value for CandidateName</param>
        /// <param name="fldSourceUrl">Value for SourceUrl</param>
        /// <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> SearchNow(string fldCandidateName
                                                          , string fldSourceUrl
                                                          , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new CandidatesLogic();

            driver.Search(fldCandidateName
                          , fldSourceUrl
                          , connection, transaction);

            return(driver.Results);
        }