Example #1
0
        public ClubCloud_Reservering GetReserveringByReserveringId(string bondsnummer, Guid verenigingId, Guid reserveringId, bool refresh = false)
        {
            ClubCloud_Reservering reservering = new ClubCloud_Reservering();

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

            return(reservering);
        }