/// <summary> /// Method to Approve credit card /// </summary> static void ApproveCreditCard() { CreditCard cr = new CreditCard(); //Creating object to creditcard CreditcardBusinessLogicLayer cbl = new CreditcardBusinessLogicLayer(); //Creating object to Creditcard BusinessLogicLayer int a; Console.WriteLine("Enter CustomerID"); a = int.Parse(Console.ReadLine()); bool b = cbl.ApproveCreditCard(a); if (b == true)//checking the condition for approval which is called from businesslogic layer of creditcard { Console.WriteLine("You are eligible to approve credit card"); } else { Console.WriteLine("You are not eligible to approve credit card"); } }