示例#1
0
        /// Method driver for the city or state count by particular city or state
        public static void GetCountByCityOrState()
        {
            Console.WriteLine("Enter the choice you want to retrieve data");
            Console.WriteLine("1.City.");
            Console.WriteLine("2.State.");
            int choice = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Enter the City or State by which you want the data -");
            string cityOrState = Console.ReadLine();

            repository.GetCountOfCityOrState(cityOrState, choice);
        }