protected void btnRemoveLoan_Click(object sender, EventArgs e) { LoansBLL bll = new LoansBLL(); bool result = bll.RemoveAllLoans(); if (result) { // all loans List<Loans> allLoans = bll.GetLoans(); // check to see if the loan has been added or updated ApplicationHub.RefreshLoans(allLoans); ShowMessage("Message", "All loans deleted successfully"); LogActivity("Delete All Loans", "Remove all the quotes", string.Empty); } else { LogActivity("Delete All Loans(Unsuccessfull)", "Remove all the quotes", string.Empty); lblRemoveLoanMessage.Text = "Unable to delete the loans"; } }