public void SaveCustomer(int id, Customer customer) { _customers.Value[id] = customer; SaveCustomerList(_customers.Value); }
public void SaveCustomer() { Customer customer = new Customer { Name = _view.CustomerName, Address = _view.Address, Phone = _view.Phone}; _repository.SaveCustomer(_view.SelectedCustomer, customer); UpdateCustomerListView(); }