private static void CheckAndWriteCount(string country) { var customerFromCountrySpec = new CustomerFromCountrySpec(country); var customers = _customerDao.Count(customerFromCountrySpec); Console.WriteLine($"Total {country} = {customers}"); }
private static void CheckAndWriteCountList(string c1, string c2) { var customerFromCountrySpecC1 = new CustomerFromCountrySpec(c1); var customerFromCountrySpecC2 = new CustomerFromCountrySpec(c2); var customers = _customerDao.Count(customerFromCountrySpecC1 || customerFromCountrySpecC2); Console.WriteLine($"Total {c1} and {c2} = {customers}"); }