Ejemplo n.º 1
0
        public ViewResult ViewExercises(ExercisePageViewModel pageViewModel)
        {
            var exercises = _exerciseService.GetExercises(pageViewModel.NameFilter, pageViewModel.LevelFilter);

            pageViewModel.Exercises = exercises.Select(dto => dto.MapTo<ExerciseViewModel>());

            return View("ViewExercises", pageViewModel);
        }
Ejemplo n.º 2
0
 public ViewResult FilterExercises(ExercisePageViewModel pageViewModel)
 {
     pageViewModel.ShowFilter = true;
     return ViewExercises(pageViewModel);
 }