private void FixupTypeSession(TypeSession previousValue) { if (previousValue != null && previousValue.OffresReferencesSessions.Contains(this)) { previousValue.OffresReferencesSessions.Remove(this); } if (TypeSession != null) { if (!TypeSession.OffresReferencesSessions.Contains(this)) { TypeSession.OffresReferencesSessions.Add(this); } if (TypeSessions != TypeSession.Id) { TypeSessions = TypeSession.Id; } } }
public Resultat<IList<Session>> GetSessionByType(TypeSession typeSession) { return Resultat<IList<Session>>.SafeExecute<SessionService>( result => { }); }
private void FixupTypeSession(TypeSession previousValue) { if (previousValue != null && previousValue.Sessions.Contains(this)) { previousValue.Sessions.Remove(this); } if (TypeSession != null) { if (!TypeSession.Sessions.Contains(this)) { TypeSession.Sessions.Add(this); } if (TypeSessionId != TypeSession.Id) { TypeSessionId = TypeSession.Id; } } }