//public System.Collections.Generic.List<ClubCloud_Baan> GetBanenByVerenigingId(string bondsnummer, Guid verenigingId, bool refresh = false) //{ // List<ClubCloud_Baan> banen = new List<ClubCloud_Baan>(); // if (SPContext.Current != null && SPContext.Current.Web != null) // { // ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current); // banen = client.GetBanenByVerenigingId(bondsnummer, verenigingId, refresh); // } // return banen; //} public List <ClubCloud_Baanblok> GetBaanblokkenByAccommodatieId(string bondsnummer, Guid verenigingId, Guid accommodatieId, bool refresh = false) { List <ClubCloud_Baanblok> baanblokken = new List <ClubCloud_Baanblok>(); if (SPContext.Current != null && SPContext.Current.Web != null) { ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current); baanblokken = client.GetBaanblokkenByAccommodatieId(bondsnummer, verenigingId, accommodatieId, refresh); } return(baanblokken); }