Пример #1
0
        public List <ClubCloud_Sponsor> GetSponsorenByVerenigingId(string bondsnummer, Guid verenigingId, bool refresh = false)
        {
            List <ClubCloud_Sponsor> sponsoren = new List <ClubCloud_Sponsor>();

            if (SPContext.Current != null && SPContext.Current.Web != null)
            {
                ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current);
                sponsoren = client.GetSponsorenForVerenigingById(verenigingId, refresh, new ClubCloud_Setting {
                    Id = int.Parse(bondsnummer), VerenigingId = verenigingId
                });
            }

            return(sponsoren);
        }