Exemplo n.º 1
0
    public bool IsDepartmentInDepartment(string offspringDepartmentID, string ancestorDepartmentID, bool recursive)
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(false);
        }

        Guid gOffspringDepartmentID = (Guid)XmlSerializer.Deserialize(offspringDepartmentID);

        Guid gAncestorDepartmentID = (Guid)XmlSerializer.Deserialize(ancestorDepartmentID);

        return(OrganizationPublicHelper.IsDepartmentInDepartment(gOffspringDepartmentID, gAncestorDepartmentID, recursive));
    }