public void UpdateSportsScienceExercise(SportsScienceExercise exercise, int id) { if (id != 0) { exercise.Id = id; _sportsScienceExerciseRepository.Update(exercise, id); } }
public SportsScienceExercise AddSportsScienceExercise(SportsScienceExercise exercise) { if (exercise != null) { return _sportsScienceExerciseRepository.Add(exercise); } return null; }