public ActionResult Edit(Difficulty difficulty) { if (ModelState.IsValid) { db.Entry(difficulty).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(difficulty)); }
public ActionResult Edit(MuscleGroup musclegroup) { if (ModelState.IsValid) { db.Entry(musclegroup).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(musclegroup)); }
public ActionResult Edit(Trainee trainee) { if (ModelState.IsValid) { db.Entry(trainee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainee)); }
public ActionResult Edit(PFTApp.Models.Attribute attribute) { if (ModelState.IsValid) { db.Entry(attribute).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(attribute)); }
public ActionResult Edit(Serie serie) { if (ModelState.IsValid) { db.Entry(serie).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.exerciseunitId = new SelectList(db.ExerciseUnits, "id", "id", serie.exerciseunitId); return(View(serie)); }
public ActionResult Edit(Training training) { if (ModelState.IsValid) { db.Entry(training).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.traineeId = new SelectList(db.Trainees, "id", "name", training.traineeId); return(View(training)); }
public ActionResult Edit(Workout workout) { if (ModelState.IsValid) { db.Entry(workout).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.trainingId = new SelectList(db.Trainings, "id", "name", workout.trainingId); return(View(workout)); }
public ActionResult Edit(Measure measure) { if (ModelState.IsValid) { db.Entry(measure).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.traineeId = new SelectList(db.Trainees, "id", "name", measure.traineeId); ViewBag.attributeId = new SelectList(db.Attributes, "id", "name", measure.attributeId); return(View(measure)); }
public ActionResult Edit(Exercise exercise) { if (ModelState.IsValid) { db.Entry(exercise).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.difficultyId = new SelectList(db.Difficulties, "id", "name", exercise.difficultyId); ViewBag.musclegroupId = new SelectList(db.MuscleGroups, "id", "name", exercise.musclegroupId); return(View(exercise)); }
public ActionResult Edit(ExerciseUnit exerciseunit) { if (ModelState.IsValid) { db.Entry(exerciseunit).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.exerciseId = new SelectList(db.Exercises, "id", "name", exerciseunit.exerciseId); ViewBag.workoutId = new SelectList(db.Workouts, "id", "name", exerciseunit.workoutId); return(View(exerciseunit)); }