/// <summary> /// Removes the specified _session property. /// </summary> /// <param name="sessionProperty">The _session property.</param> /// <returns></returns> public bool Remove(SessionProperty sessionProperty) { sessionProperty.SuspendUpdates = true; sessionProperty.AccountId = AccountId; sessionProperty.SessionId = SessionId; sessionProperty.Update(); sessionProperty.SuspendUpdates = false; return Properties.Remove(sessionProperty); }
/// <summary> /// Adds the specified session property. /// </summary> /// <param name="sessionProperty">The _session property.</param> public void Add(SessionProperty sessionProperty) { sessionProperty.SuspendUpdates = true; sessionProperty.AccountId = AccountId; sessionProperty.SessionId = SessionId; sessionProperty.Update(); sessionProperty.SuspendUpdates = false; Properties.Add(sessionProperty); }