public WorkoutViewModel(Workout workout, FitnessTrackerDataContext dc)
 {
     dataContext = dc;
     Workout = workout;
     exerciseTypeRepository = new ExerciseTypeRepository(dataContext);
     DistanceUnitTypeList = CreateDistanceUnitSelectList();
 }
 public ExerciseTypeViewModel(ExerciseType exerciseType, FitnessTrackerDataContext dc)
 {
     dataContext = dc;
     ExerciseType = exerciseType;
     exerciseTypeRepository =  new ExerciseTypeRepository(dc);
     HasDistanceDataSelectList = CreateHasDistanceDataSelectList();
 }
 public WorkoutRegimenViewModel(WorkoutRegimen workoutRegimen, FitnessTrackerDataContext dc)
 {
     dataContext = dc;
     WorkoutRegimen = workoutRegimen;
     exerciseTypeRepository = new ExerciseTypeRepository(dataContext);
     ExerciseTypeList = CreateExerciseTypeSelectList();
     DaysInWeekList = CreateDaysInWeekSelectList();
     NumWeeksList = CreateNumWeeksSelectList();
     DistanceUnitTypeList = CreateDistanceUnitSelectList();
 }