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)); }
public IActionResult Index() { var model = _faqGroupRepository.GetAllMap <FaqGroupDTO>(); return(View(model)); }