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