Processes admin export user csv request
Namespace:
RainWorx.FrameWorx.MVC.ControllersAssembly: RainWorx.FrameWorx.MVC (in RainWorx.FrameWorx.MVC.dll) Version: 3.5
Syntax
C#
public ActionResult ExportUserCSV( int? userid, string username, string first, string last, string email, string status, string role, string sort, bool descending, bool includeHeaders, string columnSpec )
Parameters
- userid
- Type: SystemNullableInt32
id of a specific user (0 to skip user id filter) - username
- Type: SystemString
partial username string to match - first
- Type: SystemString
partial first name string to match - last
- Type: SystemString
partial last name string to match - Type: SystemString
partial email address string to match - status
- Type: SystemString
filter results by various status flag combinations - see remarks for more info - role
- Type: SystemString
the name of the role to include (e.g. "Admin", "Seller", or "Buyer"; or empty string ("") to skip role filter) - sort
- Type: SystemString
the name of the column to sort the results by - descending
- Type: SystemBoolean
true to order the results from highest to lowest - includeHeaders
- Type: SystemBoolean
true to include a header row in resulting CSV data - columnSpec
- Type: SystemString
a comma-delimited list of columns to include
Return Value
Type: ActionResultRedirect to /Admin/UserManagement
Remarks
empty string ("") | IsActive = 1 |
"deactivated" | IsActive = 0 |
"restricted" | IsLockedOut = 1 and IsActive = 1 |
"unverified" | IsVerified = 0 and IsActive = 1 |
"unapproved" | IsApproved = 0 and IsActive = 1 |
"active" | IsActive = 1 and IsLockedOut = 0 and IsVerified = 1 and IsApproved = 1 |
"newsletter" | IsActive = 1 and IsLockedOut = 0 and IsVerified = 1 and IsApproved = 1 and Newsletter = 1 |
See Also