static void Main(string[] args)
        {
            Console.WriteLine("------------Welecome to my showroom---------------");
            Console.WriteLine("There are the list of Car's  which is avilable in our company!");
            IEnumerable <CarShowroom> lists = new List <CarShowroom>();
            CarShowroom carShowroom         = new CarShowroom();

            lists = carShowroom.addCustomerData();
            IEnumerable <string> listcompanyname = lists.Select(m => m.companyName).Distinct();



            foreach (var c in listcompanyname)
            {
                Console.WriteLine(c);
            }

            Console.WriteLine("Which model do you want to see!");
            int count = 0;

            foreach (var c in listcompanyname)
            {
                ++count;
                Console.WriteLine("If you want to go with" + "  " + c + " " + "press" + "  " + count + ":");
            }
            string choice = Console.ReadLine();


            switch (choice)
            {
            case "1":

                carShowroom.Formating(lists, "Maruti");
                break;

            case "2":

                carShowroom.Formating(lists, "Hundai");

                break;

            case "3":

                carShowroom.Formating(lists, "Honda");

                break;
            }


            Console.ReadLine();
        }
        public IEnumerable <CarShowroom> addCustomerData()
        {
            CarShowroom cs1 = new CarShowroom
            {
                companyName = "Maruti",
                modelName   = "800",
                colour      = "White",
                discount    = "20.7%",
                price       = 500000
            };
            CarShowroom cs2 = new CarShowroom
            {
                companyName = "Hundai",
                modelName   = "I10",
                colour      = "Blue",
                discount    = "7.7%",
                price       = 900000
            };
            CarShowroom cs3 = new CarShowroom
            {
                companyName = "Hundai",
                modelName   = "I20",
                colour      = "Black",
                discount    = "9%",
                price       = 1500000
            };
            CarShowroom cs4 = new CarShowroom
            {
                companyName = "Honda",
                modelName   = "HondaAmaze",
                colour      = "red",
                discount    = "20.7%",
                price       = 400000
            };

            lstcar.Add(cs1);
            lstcar.Add(cs2);
            lstcar.Add(cs3);
            lstcar.Add(cs4);

            return(lstcar);
        }