public async Task <ActionResult> Delete([FromBody] DeleteExercise command) { await DispatchAsync(command); _logger.LogInfo($"Exercise with id: {command.ExerciseId} removed."); return(NoContent()); }
private void DeleteThisExerciseItem() { //are you sure? MessageBoxResult result = MainWindowViewModel.dialogService.ShowMessageBox( this, "Are you sure you want to delete this exercise?", "Delete Exericse", MessageBoxButton.YesNo ); if (result != MessageBoxResult.Yes) { return; } DeleteExercise?.Invoke(this, null); }
private void BtnDelete_Click(object sender, EventArgs e) { DeleteExercise?.Invoke(sender, e); }