private async Task ExecuteSaveDraft() { if (!CanSave()) { return; } StartBeingBusy($"Saving new ‹{TypeDescription}› record ..."); SaveNewRecord(Draft); await SaveNewRecordAsync(Draft); NewRecordSaved?.Invoke(this, Draft); AfterSaveCompleted(Draft); }
private async Task ExecuteSaveDraft() { if (!CanSave()) { return; } StartBeingBusy($"Saving new ‹{TypeDescription}› record ..."); SaveNewRecord(Draft); await SaveNewRecordAsync(Draft); NewRecordSaved?.Invoke(this, Draft); SaveCompleted?.Invoke(this, EventArgs.Empty); StopBeingBusy(); ReturnDialogResult(true); }