// GET: Exercises/Edit/5
        public ActionResult Edit(int id)
        {
            var model = ExerciseRepository.GetExercise(id);

            return(View(model));
        }
        // GET: Exercises/Delete/5
        public ActionResult Delete(int id)
        {
            var exercise = ExerciseRepository.GetExercise(id);

            return(View(exercise));
        }
Пример #3
0
        // GET: Student/Edit/5
        public ActionResult Edit(int id)
        {
            Exercise exercise = ExerciseRepository.GetExercise(id);

            return(View(exercise));
        }