private static void GetAllCustomerList(CustomersManager customersManager) { Console.WriteLine("Müşterilerin Listesi: \nId\tKullanıcı Id\tCustomer Name"); foreach (var customer in customersManager.GetAll().Data) { Console.WriteLine($"{customer.CustomerId}\t{customer.UsersMId}\t{customer.CompanyName}"); } }
private static void CustomerAllDetails() { CustomersManager customerManager = new CustomersManager(new EfCustomerDal()); foreach (var customer in customerManager.GetAll().Data) { Console.WriteLine("Müşteri Adı: " + customer.CustomerName + " - " + "Şirket Adı: " + customer.CompanyName); } }
private static void CustomerTest() { CustomersManager customerManager = new CustomersManager(new EfCustomerDal()); var listCustomers = customerManager.GetAll(); foreach (var customer in listCustomers.Data) { Console.WriteLine(customer.CompanyName); } }