Пример #1
0
        public async Task <Contact> UpdateContact(string serviceUrl, Contact contact)
        {
            var contactData = JsonConvert.SerializeObject(contact);
            var response    = _service.Put(serviceUrl + "UpdateContact", contactData);
            var data        = await response.Result.Content.ReadAsStringAsync();

            var result = JsonConvert.DeserializeObject <Contact>(data);

            return(result);
        }