Ejemplo n.º 1
0
        public async Task <Contact> CreateContact(string serviceUrl, Contact contact)
        {
            var contactData = JsonConvert.SerializeObject(contact);
            var response    = _service.Post(serviceUrl + "CreateContact", contactData);
            var data        = await response.Result.Content.ReadAsStringAsync();

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

            return(result);
        }