コード例 #1
0
 public void SaveCustomer(int id, Customer customer)
 {
     _customers.Value[id] = customer;
     SaveCustomerList(_customers.Value);
 }
コード例 #2
0
 public void SaveCustomer()
 {
     Customer customer = new Customer { Name = _view.CustomerName, Address = _view.Address, Phone = _view.Phone};
     _repository.SaveCustomer(_view.SelectedCustomer, customer);
     UpdateCustomerListView();
 }