BookMgnt.DAL.Security.CustomPrincipal.IsInRole C# (CSharp) Method

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool
        public bool IsInRole(string role)
        {
            if (roles.Any(r => role.Contains(r)))
            {
                return true;
            }
            else
            {
                return false;
            }
        }