Exemplo n.º 1
0
 public void UpdateBan(Ban ban)
 {
     // Do not throw a not implemented exception.
     // If this method is called, do nothing.
     //
     // This allows the code above this layer to use this method
     // in case a future data store needs it.
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deletes a ban from the data context.
 /// </summary>
 /// <param name="ban">The ban to be deleted.</param>
 public void DeleteBan(Ban ban)
 {
     _entityContainer.Bans.Remove(ban);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add a ban to the data context.
 /// </summary>
 /// <param name="ban">The ban to be added.</param>
 public void AddBan(Ban ban)
 {
     _entityContainer.Bans.Add(ban);
 }