/// <summary> /// Run Role_Search, and return results as a list of RoleRow. /// </summary> /// <param name="fldTitle">Value for Title</param> /// <param name="fldDescription">Value for Description</param> /// <param name="fldWINSID">Value for WINSID</param> /// <returns>A collection of RoleRow.</returns> public static List <RoleContract> SearchNow(string fldTitle , string fldDescription , string fldWINSID ) { var driver = new RoleLogic(); driver.Search(fldTitle , fldDescription , fldWINSID ); return(driver.Results); }
/// <summary> /// Run Role_Search, and return results as a list of RoleRow. /// </summary> /// <param name="fldTitle">Value for Title</param> /// <param name="fldDescription">Value for Description</param> /// <param name="fldWINSID">Value for WINSID</param> /// <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> SearchNow(string fldTitle , string fldDescription , string fldWINSID , SqlConnection connection, SqlTransaction transaction) { var driver = new RoleLogic(); driver.Search(fldTitle , fldDescription , fldWINSID , connection, transaction); return(driver.Results); }