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