예제 #1
0
        internal ICustomer GetCustomerViaPhone(string customerPhone)
        {
            var list = dbCon.GetCustomers();

            foreach (ICustomer customer in list)
            {
                if (customer.Phone == customerPhone)
                {
                    return(customer);
                }
            }
            return(null);
        }
예제 #2
0
 internal List <ICustomer> GetCustomers()
 {
     return(dbCon.GetCustomers());
 }