Exemplo n.º 1
0
 public void SaveCustomer()
 {
     CustomerInEditor.Studentnumber = EditorStudentnumber;
     CustomerInEditor.Name          = EditorName;
     CustomerInEditor.Password      = EditorPassword;
     CustomerInEditor.Email         = EditorEmail;
     if (IsExistingCustomer(CustomerInEditor))
     {
         Service.UpdateCustomer(CustomerInEditor);
     }
     else
     {
         Service.AddCustomer(CustomerInEditor);
     }
     LoadCustomers();
 }
Exemplo n.º 2
0
 public bool AddClient(Customer client)
 {
     return(Service.AddCustomer(client));
 }