/// <summary>
        ///
        /// </summary>
        /// <exception cref="ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of ApiResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse <object> > PostDesignRefAsyncWithHttpInfo(DesignerBean body = null)
        {
            var    localVarPath         = "/habmin/designer";
            var    localVarPathParams   = new Dictionary <string, string>();
            var    localVarQueryParams  = new List <KeyValuePair <string, string> >();
            var    localVarHeaderParams = new Dictionary <string, string>(Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <string, string>();
            var    localVarFileParams   = new Dictionary <string, FileParameter>();
            object localVarPostBody     = null;

            // to determine the Content-Type header
            string[] localVarHttpContentTypes = new string[] {
            };
            string localVarHttpContentType    = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            string[] localVarHttpHeaderAccepts = new string[] {
                "application/json"
            };
            string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (body != null && body.GetType() != typeof(byte[]))
            {
                localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
            }
            else
            {
                localVarPostBody = body; // byte array
            }


            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                       Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                       localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("PostDesignRef", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <object>(localVarStatusCode,
                                            localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                            null));
        }
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="ApiException">Thrown when fails to make API call</exception>
        /// <param name="designref"></param>
        /// <param name="body"> (optional)</param>
        /// <returns>ApiResponse of Object(void)</returns>
        public ApiResponse <object> PutDesignRefWithHttpInfo(int?designref, DesignerBean body = null)
        {
            // verify the required parameter 'designref' is set
            if (designref == null)
            {
                throw new ApiException(400, "Missing required parameter 'designref' when calling HabminDesignerApi->PutDesignRef");
            }

            var    localVarPath         = "/habmin/designer/{designref}";
            var    localVarPathParams   = new Dictionary <string, string>();
            var    localVarQueryParams  = new List <KeyValuePair <string, string> >();
            var    localVarHeaderParams = new Dictionary <string, string>(Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <string, string>();
            var    localVarFileParams   = new Dictionary <string, FileParameter>();
            object localVarPostBody     = null;

            // to determine the Content-Type header
            string[] localVarHttpContentTypes = new string[] {
            };
            string localVarHttpContentType    = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            string[] localVarHttpHeaderAccepts = new string[] {
                "application/json"
            };
            string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (designref != null)
            {
                localVarPathParams.Add("designref", Configuration.ApiClient.ParameterToString(designref));                    // path parameter
            }
            if (body != null && body.GetType() != typeof(byte[]))
            {
                localVarPostBody = Configuration.ApiClient.Serialize(body); // http body (model) parameter
            }
            else
            {
                localVarPostBody = body; // byte array
            }


            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)Configuration.ApiClient.CallApi(localVarPath,
                                                                                            Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("PutDesignRef", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <object>(localVarStatusCode,
                                            localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                            null));
        }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="ApiException">Thrown when fails to make API call</exception>
 /// <param name="designref"></param>
 /// <param name="body"> (optional)</param>
 /// <returns></returns>
 public void PutDesignRef(int?designref, DesignerBean body = null)
 {
     PutDesignRefWithHttpInfo(designref, body);
 }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="ApiException">Thrown when fails to make API call</exception>
 /// <param name="body"> (optional)</param>
 /// <returns>Task of void</returns>
 public async System.Threading.Tasks.Task PostDesignRefAsync(DesignerBean body = null)
 {
     await PostDesignRefAsyncWithHttpInfo(body);
 }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="ApiException">Thrown when fails to make API call</exception>
 /// <param name="body"> (optional)</param>
 /// <returns></returns>
 public void PostDesignRef(DesignerBean body = null)
 {
     PostDesignRefWithHttpInfo(body);
 }
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="ApiException">Thrown when fails to make API call</exception>
 /// <param name="designref"></param>
 /// <param name="body"> (optional)</param>
 /// <returns>Task of void</returns>
 public async System.Threading.Tasks.Task PutDesignRefAsync(int?designref, DesignerBean body = null)
 {
     await PutDesignRefAsyncWithHttpInfo(designref, body);
 }