/// <summary> /// List all customers in the database /// </summary> /// <param name="dataAccessLayer"></param> private static void ListCustomers(InventoryDAL dataAccessLayer) { List <Customer> customerList = dataAccessLayer.GetAllCustomersAsList(); WriteLine("CustId\tName"); foreach (Customer customer in customerList) { WriteLine($"{customer.CustId}\t{customer.FirstName}\t{customer.LastName}"); } }