// GET: Admin/ContactUs public ActionResult UsefulLinksContacts() { if (TempData["data"] != null) { ViewBag.DataBaseStatus = "Changes Updated"; } List <LinksContacts> LinksContacts = _contactUsDao.Get(1, 10); return(View(LinksContacts)); }
// GET: ContactUs public ActionResult UsefulLinksContacts() { UsefulLinksContactViewModel contactViewModel = new UsefulLinksContactViewModel(); ViewBannerModel viewBanner = _bannerDao.GetViewBanner(); IList <LinksContacts> LinksContacts = _contactUsDao.Get(0, 0); contactViewModel.LinksContacts = LinksContacts; if (viewBanner != null && viewBanner.ContactUsBanner != null && viewBanner.ContactUsBanner.Count > 0) { contactViewModel.ContactUsBanner = viewBanner.ContactUsBanner.Where(s => s.Page == "Useful Links & Contacts").FirstOrDefault(); } return(View(contactViewModel)); }