Example #1
0
        public async Task <IActionResult> EditExercise(EditExerciseViewModel model)
        {
            var exercise = new Exercise()
            {
                Id = model.Id
            };

            exercise.Name = model.Name;

            await _exerciseService.EditExercise(exercise);

            return(RedirectToAction("ShowAllExercises", "Administration"));
        }