Пример #1
0
        public ActionResult CreateWorkout(string name, string notes, int planID)
        {
            bool isAdded = _workoutDal.CreateWorkout(name, notes, planID);

            return(RedirectToAction("Workouts", new { planId = planID }));
        }
Пример #2
0
 public IActionResult AddWorkout(Workout workIt)
 {
     workoutDAL.CreateWorkout(workIt);
     //workoutDAL.UpdateWorkout(workIt);
     return(RedirectToAction("Index", "Gym"));
 }