private void RemoveAssignmentUponDelete(DeleteAssignmentMessage message)
 {
     foreach (var workoutAssingment in WorkOutDefinitions.Where(w => w.WorkOutDefinition.WorkOutId == message.WorkoutDefinitionId).ToList())
     {
         WorkOutDefinitions.Remove(workoutAssingment);
     }
 }
Пример #2
0
 private void RemoveAssignmentUponDelete(DeleteAssignmentMessage message)
 {
     foreach (var assignment in Sessions.Where(s => s.WorkOutDefinitions.Any(w => w.SessionDefinitionId == message.SessionDefinitionId &&
                                                                             w.WorkOutDefinition.WorkOutId == message.WorkoutDefinitionId)))
     {
     }
 }