Ejemplo n.º 1
0
 /// <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)
     {
     }
 }
Ejemplo n.º 2
0
 /// <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();
 }