Ejemplo n.º 1
0
        public void Update(Action <Service> action)
        {
            var service = new Service();

            action(service);
            var putJson = JsonConvert.SerializeObject(service, Constants.IgnoreDefaultValues);
            var request = ServicesController.GenerateDefaultRequest();

            request.Resource += this.ServiceId;
            request.Method    = Method.PUT;
            request.AddParameter(Constants.JsonContentType, putJson, ParameterType.RequestBody);
            ServicesController.ExecuteBaseResponseRequest(request);
        }