public CreateResponseBody CreateApiPostCall(RequestBody Body)
        {
            ErrorDTO pageError = new ErrorDTO();
            Tuple <HttpWebRequest, ErrorDTO> ReqVar;
            CreateResponseBody responseBody = null;

            try
            {
                ReqVar       = BotAPIService.ManageConfigurationForAPIPostCall(Body);
                responseBody = GetResponseFromApi(ReqVar.Item1);
            }
            catch (Exception exception)
            {
                //handle error
            }
            return(responseBody);
        }
        public CreateResponseBody GetResponseFromApi(WebRequest request)
        {
            bool     ApiUnavailable = true;
            string   response       = string.Empty;
            ErrorDTO pageError      = new ErrorDTO();
            var      Error          = "test123";
            Tuple <ErrorDTO, string> responseFromAPI = new Tuple <ErrorDTO, string>(pageError, response);

            responseFromAPI = BotAPIService.GetResponse(request);

            CreateResponseBody responseBody = null;

            if (!string.IsNullOrEmpty(responseFromAPI.Item2))
            {
                BotAPIHelper botAPIHelper       = new BotAPIHelper();
                var          responseAfterParse = botAPIHelper.ParseCreateResponse(responseFromAPI.Item2);
                if (responseAfterParse.Body != null)
                {
                    responseBody   = responseAfterParse.Body;
                    ApiUnavailable = false;
                }
            }
            return(responseBody);
        }