private async void UpdateData() { Author author = new Author(); author.ID = int.Parse(txtID.Text); author.FullName = txtFullName.Text; author.Address = txtAddress.Text; bool x = await _authorRepository.EditAuthorAsync(author); if (x) { XtraMessageBox.Show("Edit successfully !", "Success", MessageBoxButtons.OK); LoadDataToGridView(); } else { XtraMessageBox.Show("Edit failed (not null) !", "Fail", MessageBoxButtons.OK); } }