Esempio n. 1
0
        public async Task <FaqViewModel> SearchFaqs(FaqViewModel model)
        {
            if (model.FaqSearchCriteria != null && !string.IsNullOrWhiteSpace(model.FaqSearchCriteria.SearchString))
            {
                Faqs = await _faqService.SearchFaqs(model.PageNumber, 100000, model.FaqSearchCriteria.SearchType, model.FaqSearchCriteria.SearchString);
            }
            else
            {
                Faqs = await _faqService.SearchFaqs(model.PageNumber, 100000, 0, "");
            }

            return(this);
        }