Example #1
0
        /// <summary>
        /// Run Locations_Search, and return results as a list of LocationsRow.
        /// </summary>
        /// <param name="fldLocationName">Value for LocationName</param>
        /// <param name="fldSourceUrl">Value for SourceUrl</param>
        /// <returns>A collection of LocationsRow.</returns>
        public static List <LocationsContract> SearchNow(string fldLocationName
                                                         , string fldSourceUrl
                                                         )
        {
            var driver = new LocationsLogic();

            driver.Search(fldLocationName
                          , fldSourceUrl
                          );
            return(driver.Results);
        }
Example #2
0
        /// <summary>
        /// Run Locations_Search, and return results as a list of LocationsRow.
        /// </summary>
        /// <param name="fldLocationName">Value for LocationName</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 LocationsRow.</returns>
        public static List <LocationsContract> SearchNow(string fldLocationName
                                                         , string fldSourceUrl
                                                         , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new LocationsLogic();

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

            return(driver.Results);
        }