public async Task UpdateCustomerAsync(Customer customer) { for (int i = 0; i < _customers.Count; i++) if (string.Equals(_customers[i].Id, customer.Id)) { _customers[i] = customer; } }
public async Task AddCustomerAsync(Customer customer) { if (_customers.Find(attempt => attempt.Id == customer.Id) == null) _customers.Add(customer); }
public async Task RemoveCustomerAsync(Customer customer) { _customers.Remove(customer); }
protected ReactiveCustomer() { _model = new Customer(); }