private void displayMessageToTheUser(TransactionResponse response, bool noNotification)
    {
        if (noNotification)
        {
            InfoDIV.Visible = true;
            lblInformationMsg.Text = "You have no notification sent to you";
            return;
        }

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                SucessDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                WarnDIV.Visible = true;
                lblWarningMsg.Text = response.getMessage() + response.getErrorCode() ;
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                ErroroDIV.Visible = true;
                lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                break;
        }
    }
    private void displayMessageToTheUser(TransactionResponse response)
    {
        clearMsgPanel();

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                msgPanel.Visible = true;
                SucessDIV.Visible = true;
                lblSuccessMessage.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                msgPanel.Visible = true;
                InfoDIV.Visible = true;
                lblInformationMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                msgPanel.Visible = true;
                WarnDIV.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblWarningMsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblWarningMsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                msgPanel.Visible = true;
                ErroroDIV.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblErrorMsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblErrorMsg.Text = response.getMessage();
                break;

        }
    }
    private void displayMessageToTheUser(TransactionResponse response)
    {
        PanelApplicantmsg.Visible = true;
        ApplSuccessDiv.Visible = false;
        lblApplicantSuccessmsg.Text = "";
        ApplInfoDiv.Visible = false;
        lblApplicantInfomsg.Text = "";
        ApplWarDiv.Visible = false;
        lblApplicantWarnmsg.Text = "";
        ApplErrorDiv.Visible = false;
        lblApplicantErrormsg.Text = "";

        switch (response.getMessageType())
        {
            case TransactionResponse.SeverityLevel.SUCESS:
                ApplSuccessDiv.Visible = true;
                lblApplicantSuccessmsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.INFO:
                ApplInfoDiv.Visible = true;
                lblApplicantInfomsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.WARNING:
                ApplWarDiv.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblApplicantWarnmsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblApplicantWarnmsg.Text = response.getMessage();
                break;
            case TransactionResponse.SeverityLevel.ERROR:
                ApplErrorDiv.Visible = true;
                if (response.getErrorCode() != null)
                {
                    lblApplicantErrormsg.Text = response.getMessage() + response.getErrorCode();
                    break;
                }
                lblApplicantErrormsg.Text = response.getMessage();
                break;

        }
    }