public void Add(string name, string att, string address, string postalNo, string phoneNo, string cvr) { CustomerList.Add(new Customer(name, att, address, postalNo, phoneNo, cvr)); PersistencyService.SaveKundeListeAsJsonAsync(CustomerList); }
public void Remove(Customer customerToBeRemoved) { CustomerList.Remove(customerToBeRemoved); PersistencyService.SaveKundeListeAsJsonAsync(CustomerList); }
public void Add(Customer newCustomer) { CustomerList.Add(newCustomer); PersistencyService.SaveKundeListeAsJsonAsync(CustomerList); }