Exemple #1
0
        public ServiceResponseResult reverseListToServer(LTL_LotteryList pListObject)
        {
            var jsonObject = this.generateSimpleListObject(pListObject,
                                                           SystemConstants.LIST_STATUS_CANCELED, SystemConstants.SYNC_STATUS_COMPLETED);

            Console.WriteLine("Request Reversión: " + jsonObject);
            string            urlEndPoint = ServiceConectionConstants.ROOT_LIST_RESOURCE_URL + "/" + pListObject.LTL_Id + "/";
            RestClientService restClient  = new RestClientService();

            return(restClient.processHttpRequest(urlEndPoint, jsonObject, SystemConstants.HTTP_PUT_METHOD));
        }
Exemple #2
0
        //----------------- Métodos utilitarios para acceder a servicios -----------------//


        public ServiceResponseResult callHttpRequest(string pServiceURL, Object pJsonObject, string pHttpMethod)
        {
            RestClientService restClient = new RestClientService();

            return(restClient.processHttpRequest(pServiceURL, pJsonObject, pHttpMethod));
        }