Esempio n. 1
0
        public void GetContent()
        {
            ContentAction objContent = new ContentAction();
            Content mngContent = objContent.GetContentByType("AboutUs");
            if (mngContent != null)
                ViewData["AboutUs"] = mngContent.Value1;

            mngContent = objContent.GetContentByType("News");
            if (mngContent != null)
                ViewData["News"] = mngContent.Value1;

            mngContent = objContent.GetContentByType("Contact");
            if (mngContent != null)
                ViewData["Contact"] = mngContent.Value1;

            IList<Content> mngFAQ = objContent.GetFAQ();
            if (mngFAQ != null)
                ViewData["FAQs"] = mngFAQ;
        }
Esempio n. 2
0
 public ActionResult FAQ()
 {
     ContentAction objContent = new ContentAction();
     IList<Content> faqContent = objContent.GetFAQ();
     ViewData["FAQContent"] = faqContent;
     return View();
 }