Beispiel #1
0
        private void LoadReferrers()
        {
            ReferrerController referrerController = new ReferrerController();

            List <ReferrerModel> referrers = referrerController.GetAllReferrers();

            ReferrerList.DataSource = referrers;

            ReferrerList.DataBind();
        }
Beispiel #2
0
        private bool ReferrerValid()
        {
            bool valid = false;

            ReferrerController   controller = new ReferrerController();
            List <ReferrerModel> referrers  = controller.GetAllReferrers();

            foreach (ReferrerModel referrer in referrers)
            {
                if (Referrer == referrer.ReferrerUrl)
                {
                    valid = true;
                }
            }

            return(valid);
        }