/// <summary> /// Run Election_SelectAll, and return results as a list of ElectionRow. /// </summary> /// <returns>A collection of ElectionRow.</returns> public static List <ElectionContract> SelectAllNow() { var driver = new ElectionLogic(); driver.SelectAll(); return(driver.Results); }
/// <summary> /// Run Election_SelectAll, and return results as a list of ElectionRow. /// </summary> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of ElectionRow.</returns> public static List <ElectionContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction) { var driver = new ElectionLogic(); driver.SelectAll(connection, transaction); return(driver.Results); }