public async Task <int> DeleteContact(string serviceUrl, int id) { //var contactData = JsonConvert.SerializeObject(contact); var response = _service.Delete(serviceUrl + "DeleteContact", Convert.ToString(id)); var data = await response.Result.Content.ReadAsStringAsync(); var result = JsonConvert.DeserializeObject <int>(data); return(result); }