BgEngine.Security.Services.CodeFirstRoleServices.IsUserInRole C# (CSharp) Method

IsUserInRole() public static method

public static IsUserInRole ( string user, string role ) : bool
user string
role string
return bool
        public static bool IsUserInRole(string user, string role)
        {
            CodeFirstRoleProvider rp = new CodeFirstRoleProvider();
            return rp.IsUserInRole(user, role);
        }