internal ICustomer GetCustomerViaPhone(string customerPhone) { var list = dbCon.GetCustomers(); foreach (ICustomer customer in list) { if (customer.Phone == customerPhone) { return(customer); } } return(null); }
internal List <ICustomer> GetCustomers() { return(dbCon.GetCustomers()); }