public static CFBR_Validation_Response BookClientClass(CFBR_User cf_user, int cf_class_id)
        {
            ///////////////////////
            // Standard API call //
            ///////////////////////

            // Create Service
            ClassService classService = new ClassService();

            // Create request
            AddClientsToClassesRequest request = new AddClientsToClassesRequest();

            // Create and fill credentials
            request.SourceCredentials = new SourceCredentials();
            request.SourceCredentials.SourceName = SOURCE_NAME;
            request.SourceCredentials.Password = SOURCE_PASSWORD;
            request.SourceCredentials.SiteIDs = SITE_IDS;

            string[] client_ids = { cf_user.ClientId }; // Add User ID
            request.ClientIDs = client_ids;

            int[] class_ids = { cf_class_id }; // Add Class ID
            request.ClassIDs = class_ids;

            request.RequirePayment = false;

            request.Test = false;

            // Run call with request and fill result
            AddClientsToClassesResult api_result = classService.AddClientsToClasses(request);

            CFBR_Validation_Response result = new CFBR_Validation_Response();

            result.DataObj = api_result;
            result.IsValid = (api_result.Status == StatusCode.Success);
            result.Message = api_result.Message;

            return result;
        }
 /// <remarks/>
 public void AddClientsToClassesAsync(AddClientsToClassesRequest Request, object userState) {
     if ((this.AddClientsToClassesOperationCompleted == null)) {
         this.AddClientsToClassesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddClientsToClassesOperationCompleted);
     }
     this.InvokeAsync("AddClientsToClasses", new object[] {
                 Request}, this.AddClientsToClassesOperationCompleted, userState);
 }
 /// <remarks/>
 public void AddClientsToClassesAsync(AddClientsToClassesRequest Request) {
     this.AddClientsToClassesAsync(Request, null);
 }
 public AddClientsToClassesResult AddClientsToClasses(AddClientsToClassesRequest Request) {
     object[] results = this.Invoke("AddClientsToClasses", new object[] {
                 Request});
     return ((AddClientsToClassesResult)(results[0]));
 }