Ejemplo n.º 1
0
        static void GetCustomerById()///geting singe customer details by using his/her id  as primarykey///
        {
            System.Console.Write("Enter the customerID: ");
            int          CustomerId = int.Parse(System.Console.ReadLine());
            CustBusiness cbl        = new CustBusiness();
            Customer     b          = cbl.GetCustomerById(CustomerId);///which cls the businesslogic of getcustomerid method///

            System.Console.WriteLine(b.CustomerId + " " + b.CustomerName + " " + b.MblNo + " " + b.Email + " " + b.City + " " + b.Country + " " + b.HNo + " " + b.State + " " + b.PinNo);
        }