// check if a has a parent company
        private static bool IsWithParent(this CompanyModel company, CompanyAction action)
        {
            if (company.ParentCompanyId != null)
            {
                return(company.IsParentCompanyWithChild(action));
            }

            return(false);
        }