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. }
/// <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); }
/// <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); }