//Upate public bool UpdateCustomerInformation(int r, KomodoCustomers newCustomer) { KomodoCustomers oldCustomer = GetCustomerById(r); if (oldCustomer != null) { oldCustomer.Age = newCustomer.Age; oldCustomer.LastName = newCustomer.LastName; oldCustomer.Id = newCustomer.Id; oldCustomer.YearsAsCustomer = newCustomer.YearsAsCustomer; return(true); } else { return(false); } }
//Delete public bool DeleteExistingCustomer(KomodoCustomers s) { bool deleteResult = _listOfCustomers.Remove(s); return(deleteResult); }
//Create public KomodoCustomers AddCustmoerToList(KomodoCustomers s) { _listOfCustomers.Add(s); return(s); }