private void saveContact() { var client = new CRMServiceClient(); foreach (var contact in modifycontactlst) { if (contact.id == 0) { client.AddSupplierContacts(contact); } else { client.EditSupplierContacts(contact); } } gvContact.RefreshData(); }
private void saveContact() { var client = new CRMServiceClient(); foreach (var contact in modifycontactlst) { if (contact.id == 0) { client.AddSupplierContacts(contact); } else { client.EditSupplierContacts(contact); } } gvContact.RefreshData(); }
private void btn_contactsave_Click(object sender, EventArgs e) { try { var client = new CRMServiceClient(); foreach (var contact in modifycontactlst) { if (contact.id == 0) { client.AddSupplierContacts(contact); } else { client.EditSupplierContacts(contact); } } gvContact.RefreshData(); } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }