/// <summary>
        /// Frontend Page: Add Unit(Add Unit Report)
        /// Title: Display Advance Units
        /// Designed: Kanishka SHM
        /// User story: 
        /// Developed: Kanishka SHM
        /// Date created: 
        /// </summary>
        public void RenderReport(int loanId)
        {
            //Check authentication session is null then return
            if (Session["AuthenticatedUser"] == null) return;
            User userData = (User)Session["AuthenticatedUser"];

            rptViewerAddUnit.ProcessingMode = ProcessingMode.Local;
            rptViewerAddUnit.Reset();
            rptViewerAddUnit.LocalReport.EnableExternalImages = true;
            rptViewerAddUnit.LocalReport.ReportPath = Server.MapPath("~/Reports/RptAddUnit.rdlc");
            rptViewerAddUnit.ZoomMode = ZoomMode.PageWidth;

            //Get account details
            ReportAccess ra = new ReportAccess();
            List<LoanDetailsRpt> details = ra.TopHeaderDetails(loanId, userData.UserId);

            foreach (var dates in details)
            {
                dates.ReportDate = DateTime.Now.ToString("MM/dd/yyyy");
            }

            //Set data set to report
            rptViewerAddUnit.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", details));

            //Get just added units details
            List<RptAddUnit> units = ra.GetJustAddedUnitDetails(userData.UserId, loanId);

            //Set data set to report
            rptViewerAddUnit.LocalReport.DataSources.Add(new ReportDataSource("DataSet2", units));


        }