public void UpdateUnit(UnitClass unit) { using (var client = new MyCouchClient("http://31.132.4.108:5984", "dropzoneunits")) { string output = JsonConvert.SerializeObject(unit); string unitID = unit.GetCouchID(); var response = client.Documents.PutAsync(unitID, unit.GetCouchRev(), output); MessageBox.Show("Unit Updated Sucesfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } }