public static ExerciseDone AddLiftingExerciseDone(int idExercise, DateTime date, int sets, int reps)
 {
     ExerciseDone newExerciseDone = new ExerciseDone { IdExercise = idExercise, Date = date.Date, Sets = sets, Reps = reps };
     Data.Instance.db.ExerciseDoneItems.InsertOnSubmit(newExerciseDone);
     Data.Instance.db.SubmitChanges();
     return newExerciseDone;
 }
 public static ExerciseDone AddCardioExerciseDone(int idExercise, DateTime date, int time)
 {
     ExerciseDone newExerciseDone = new ExerciseDone { IdExercise = idExercise, Date = date.Date, Time = time};
     Data.Instance.db.ExerciseDoneItems.InsertOnSubmit(newExerciseDone);
     Data.Instance.db.SubmitChanges();
     return newExerciseDone;
 }