public bool IsUserByNameInRole(string userName, string roleID) { if (!header.VerifyCredentials(header.UserName, header.Password, header.Type)) { return(false); } Guid gRoleID = (Guid)XmlSerializer.Deserialize(roleID); return(OrganizationPublicHelper.IsUserInRole(userName, gRoleID)); }