public async Task <IActionResult> Index(FAQSearchViewModel searchModel)
        {
            ViewBag.FaqGroups = _faqGroupRepository.GetAllMap <FaqGroupDTO>();

            var model = await _fAQRepository.LoadAsyncCount(
                this.CurrentPage,
                this.PageSize,
                searchModel);

            this.TotalNumber = model.Item1;

            ViewBag.SearchModel = searchModel;

            return(View(model.Item2));
        }
Exemple #2
0
        public IActionResult Index()
        {
            var model = _faqGroupRepository.GetAllMap <FaqGroupDTO>();

            return(View(model));
        }