Exemple #1
0
        /// <summary>
        /// Method driver for the city or state details by particular city or state
        /// </summary>
        public static void GetByCityOrState()
        {
            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 name of City or State by which you want the data -");
            string cityOrState = Console.ReadLine();

            repository.GetTheDetailOfRecordForCityOrState(cityOrState, choice, 1);
        }