コード例 #1
0
ファイル: FaqController.cs プロジェクト: AGurel/PortalProject
        public ActionResult Faq()
        {
            FaqModel _faqModel = new FaqModel();
            _faqModel.FaqList = _faqService.GetAll().Where(x => x.Active == State.Active).ToList();

            return View(_faqModel);
        }
コード例 #2
0
ファイル: FaqController.cs プロジェクト: AGurel/PortalProject
        public ActionResult FaqDetail(int faqId)
        {
            FaqModel _faqModel = new FaqModel();
            _faqModel.Faq = _faqService.Find(faqId);

            return View(_faqModel);
        }