Exemplo n.º 1
0
        public Version UpdateVersion(UpdateVersion version)
        {
            var request = new RestRequest
            {
                Resource      = ResourceUrls.Version(),
                RequestFormat = DataFormat.Json,
                Method        = Method.PUT
            };

            request.AddBody(version);

            return(Execute <Version>(request, HttpStatusCode.OK));
        }
Exemplo n.º 2
0
        public Version CreateVersion(NewVersion newVersion)
        {
            var request = new RestRequest()
            {
                Resource      = ResourceUrls.Version(),
                RequestFormat = DataFormat.Json,
                Method        = Method.POST
            };

            request.AddBody(newVersion);

            return(Execute <Version>(request, HttpStatusCode.Created));
        }