Ejemplo n.º 1
0
 private void btnConfirm_Click(object sender, EventArgs e)
 {
     bool result = false;
     try
     {
         BLLLoanManager BLLMngr = new BLLLoanManager();
         result = BLLMngr.ApproveLoanDetails(LoanToBeApproved);
         if (result == true)
         {
             MessageBox.Show("Loan Approved");
             OnLoanAdded(true);
             this.Close();
         }
         else
         {
             MessageBox.Show("Loan Not Approved");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         throw;
     }
 }