public void Update(Customer customer) { if (!_customers.ContainsKey(customer.Id)) { _customers.Add(customer.Id, customer); } else { _customers[customer.Id] = customer; } }
public bool Delete(Customer customer) { return _customers.Remove(customer.Id); }