IsUserInRole() public method

public IsUserInRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool
Ejemplo n.º 1
0
 public static bool IsUserInRole(string user, string role)
 {
     CodeFirstRoleProvider rp = new CodeFirstRoleProvider();
     return rp.IsUserInRole(user, role);
 }