// GET: Admin/MasterPlan public ActionResult Index() { if (TempData["data"] != null) { ViewBag.DataBaseStatus = "Changes Updated"; } TownMapPDF town = _aboutUsDao.GetMasterPlanPDF(); return(View(town)); }
public PartialViewResult Header() { HeaderModel model = new HeaderModel(); TownMapPDF town = _ourTownDao.GetTownMapPDF(); if (town != null && !string.IsNullOrEmpty(town.PDFFileGUID)) { model.MapPDF = town; } TownMapPDF OrganisationChartPDF = _aboutUsDao.GetOrganisationChartPDF(); if (OrganisationChartPDF != null && !string.IsNullOrEmpty(OrganisationChartPDF.PDFFileGUID)) { model.OrganisationChartPDF = OrganisationChartPDF; } TownMapPDF MasterPlanPDF = _aboutUsDao.GetMasterPlanPDF(); if (MasterPlanPDF != null && !string.IsNullOrEmpty(MasterPlanPDF.PDFFileGUID)) { model.MasterPlanPDF = MasterPlanPDF; } TownMapPDF GetPDPAPDF = _contactsDao.GetPDPAPDF(); if (GetPDPAPDF != null && !string.IsNullOrEmpty(GetPDPAPDF.PDFFileGUID)) { model.PDPAPDF = GetPDPAPDF; } TownMapPDF WhistleBlowingPolicyPDF = _contactsDao.GetWhistleBlowingPolicyPDF(); if (WhistleBlowingPolicyPDF != null && !string.IsNullOrEmpty(WhistleBlowingPolicyPDF.PDFFileGUID)) { model.WhistleBlowingPolicyPDF = WhistleBlowingPolicyPDF; } // initialize a model return(PartialView("_Header", model)); }