Esempio n. 1
0
        public async Task <ActionResult> Delete([FromBody] DeleteExercise command)
        {
            await DispatchAsync(command);

            _logger.LogInfo($"Exercise with id: {command.ExerciseId} removed.");

            return(NoContent());
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private void BtnDelete_Click(object sender, EventArgs e)
 {
     DeleteExercise?.Invoke(sender, e);
 }