private async void OnSave() { UpdateCustomer(Student, _editingStudent); if (EditMode) { await _repo.UpdateStudentAsync(_editingStudent); } else { await _repo.AddStudentAsync(_editingStudent); } Done(); }