public void Add(ServerData serverData)
        {
            var request = new RestRequest("api/serverdata", Method.POST);
            request.AddBody(serverData);

            var response = client.Execute<ServerData>(request);

            if (response.StatusCode != HttpStatusCode.Created)
                throw new Exception(response.ErrorMessage);
        }
        public void Update(ServerData serverData)
        {
            var request = new RestRequest("api/serverdata/{id}", Method.PUT);
            request.AddParameter("id", serverData.Id, ParameterType.UrlSegment);
            request.AddBody(serverData);

            var response = client.Execute<ServerData>(request);

            if (response.StatusCode == HttpStatusCode.NotFound)
                throw new Exception(response.ErrorMessage);
        }