public static List <provider_eligibility_restrictions> GetAllDataAsList()
        {
            List <provider_eligibility_restrictions> toReturn = new List <provider_eligibility_restrictions>();
            provider_eligibility_restrictions        per      = new provider_eligibility_restrictions();
            DataTable dt = per.GetAllData();

            foreach (DataRow aRow in dt.Rows)
            {
                per = new provider_eligibility_restrictions();
                per.Load(aRow);

                toReturn.Add(per);
            }

            return(toReturn);
        }
        public static List <provider_eligibility_restrictions> GetAllDataAsList(bool enabledOnly = true)
        {
            List <provider_eligibility_restrictions> toReturn = new List <provider_eligibility_restrictions>();
            provider_eligibility_restrictions        per      = new provider_eligibility_restrictions();
            DataTable dt = per.GetAllData();

            foreach (DataRow aRow in dt.Rows)
            {
                per = new provider_eligibility_restrictions();
                per.Load(aRow);

                if (per.is_enabled || !enabledOnly)
                {
                    var initialize = per.LinkedInsuranceCompanyGroup.LinkedFilters.Count;
                    toReturn.Add(per);
                }
            }

            return(toReturn);
        }