예제 #1
0
 public ActionResult GetFAQQuestions()
 {
     if (WebSecurity.IsAuthenticated && UserVM != null)
     {
         return(RedirectToAction("FAQ", "FAQ"));
     }
     else
     {
         IFAQService _faqsrv = new FAQService();
         return(View("../TCPViews/FAQ", _faqsrv.GetDetails()));
     }
 }
예제 #2
0
 public FAQViewModel()
 {
     FAQList = new FAQService().GetAll();
 }
예제 #3
0
 public FAQController(FAQService faqSrv)
 {
     _faqsrv        = faqSrv;
     _faqsrv.UserVM = UserVM;
 }