public ClubCloud_Baantype GetBaantypeById(string bondsnummer, Guid verenigingId, Guid accommodatieId, Guid baantypeId, bool refresh = false) { ClubCloud_Baantype baantype = new ClubCloud_Baantype(); if (SPContext.Current != null && SPContext.Current.Web != null) { ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current); baantype = client.GetBaantypeById(baantypeId, refresh, new ClubCloud_Setting { Id = int.Parse(bondsnummer), VerenigingId = verenigingId }); //, accommodatieId, BaantypeId, refresh); } return(baantype); }