Ejemplo n.º 1
0
        static void UpdateCustomer()///updating customer details by using customerid as primary key///
        {
            CustBusiness cbl = new CustBusiness();
            Customer     c   = new Customer();

            Console.Write("Enter Existing customer ID: ");
            c.CustomerId = int.Parse(Console.ReadLine());
            Console.Write("enter customer name");
            c.CustomerName = Console.ReadLine();
            cbl.UpdateCustomer(c);
            Console.WriteLine("Customer  Updated");
        }