示例#1
0
        public QnaViewModel(IQnaService qnaService)
        {
            //QnaPaging = new QnaPagingViewModel();
            QnaSearchCriteria = new QnaSearchCriteriaViewModel();
            Qnas = new PagedResult <Qna>();

            _qnaService = qnaService;
        }
示例#2
0
 public CommunityController(INoticeViewModel noticeViewModel,
                            IFaqViewModel faqViewModel,
                            INoticeService noticeService,
                            IFaqService faqService,
                            IHttpContextAccessor accessor,
                            IQnaViewModel qnaViewModel,
                            IQnaService qnaService,
                            IHostingEnvironment hostingEnvironment,
                            Microsoft.Extensions.Configuration.IConfiguration configuration)
 {
     _noticeService      = noticeService;
     _noticeViewModel    = noticeViewModel;
     _faqViewModel       = faqViewModel;
     _faqService         = faqService;
     _accessor           = accessor;
     _qnaViewModel       = qnaViewModel;
     _qnaService         = qnaService;
     _hostingEnvironment = hostingEnvironment;
     _configuration      = configuration;
 }
示例#3
0
 public CommunityController(INoticeViewModel noticeViewModel,
                            IFaqViewModel faqViewModel,
                            INoticeService noticeService,
                            IFaqService faqService,
                            IHttpContextAccessor accessor,
                            IQnaViewModel qnaViewModel,
                            IQnaService qnaService,
                            IHostingEnvironment hostingEnvironment,
                            IDbRecordService dbRecordService,
                            IConfiguration configuration)
 {
     _noticeService      = noticeService;
     _noticeViewModel    = noticeViewModel;
     _faqViewModel       = faqViewModel;
     _faqService         = faqService;
     _accessor           = accessor;
     _qnaViewModel       = qnaViewModel;
     _qnaService         = qnaService;
     _hostingEnvironment = hostingEnvironment;
     _configuration      = configuration;
     _dbRecordService    = dbRecordService;
 }