/// <summary> /// Removes <see cref="SummationSession"/> /// item from the corresponding <see cref="DatabaseContext"/> /// </summary> /// <param name="session"><see cref="SummationSession"/> item to remove</param> public void Remove(SummationSession session) { try { _sessions.Remove(session); SaveChanges(); } catch (ArgumentNullException) { } }
/// <summary> /// Adds <see cref="SummationSession"/> item to the corresponding <see cref="DatabaseContext"/> /// </summary> /// <param name="session"><see cref="SummationSession"/>Session to add</param> public void Create(SummationSession session) { _sessions.Add(session); SaveChanges(); }