Ejemplo n.º 1
0
        private int SaveExerciseDone(ExerciseDTO exercise)
        {
            var newToSave = new ExerciseDone()
            {
                IdTraining = exercise.IdTraining
            };
            var result = exerciseDoneRepository.Add(newToSave);
            int value  = newToSave.IdExerciseDone;

            return(value);
        }
 public ExerciseDone Update(ExerciseDone entity)
 {
     throw new NotImplementedException();
 }
 public ExerciseDone Add(ExerciseDone entity)
 {
     _context.ExerciseDone.Add(entity);
     _context.SaveChanges();
     return(entity);
 }