public ActionResult FAQs() { FAQViewModel viewModel = new FAQViewModel(); ViewBannerModel viewBanner = _bannerDao.GetViewBanner(); IList <FAQ> fAQs = _contactUsDao.GetFAQ(0, 0); if (fAQs != null && fAQs.Count > 0) { viewModel.FAQs = fAQs; } if (viewBanner != null && viewBanner.ContactUsBanner != null && viewBanner.ContactUsBanner.Count > 0) { viewModel.ContactUsBanner = viewBanner.ContactUsBanner.Where(s => s.Page == "FAQs").FirstOrDefault(); } return(View(viewModel)); }
public ActionResult ViewFAQ() { IList <FAQ> fAQs = _contactUsDao.GetFAQ(1, 10); return(View(fAQs)); }