C# Class BgEngine.Security.Services.CodeFirstRoleServices

Show file Open project: yagopv/BgEngine

Public Methods

Method Description
AddUsersToRoles ( string usernames, string rolenames ) : void
GetAllRoles ( ) : string[]
GetUsersInRole ( string role ) : string[]
IsUserInRole ( string user, string role ) : bool
RemoveUsersFromRoles ( string usernames, string rolenames ) : void
RoleExist ( string role ) : bool

Method Details

AddUsersToRoles() public static method

public static AddUsersToRoles ( string usernames, string rolenames ) : void
usernames string
rolenames string
return void

GetAllRoles() public static method

public static GetAllRoles ( ) : string[]
return string[]

GetUsersInRole() public static method

public static GetUsersInRole ( string role ) : string[]
role string
return string[]

IsUserInRole() public static method

public static IsUserInRole ( string user, string role ) : bool
user string
role string
return bool

RemoveUsersFromRoles() public static method

public static RemoveUsersFromRoles ( string usernames, string rolenames ) : void
usernames string
rolenames string
return void

RoleExist() public static method

public static RoleExist ( string role ) : bool
role string
return bool