public async Task <IActionResult> AllCareerExpertList(FilterParameter model)
        {
            int count;
            CareerExpertListModel classmodel1 = new CareerExpertListModel();

            classmodel1.CareerExpertModel = _classBookService.AllCareerExpertListModel(model, out count, model.PageIndex);
            classmodel1.Pager             = new Pager(count, model.PageIndex);
            var result = await _viewRenderService.RenderToStringAsync("_CareerExpertListPartialView", classmodel1);

            return(Content(result));
        }
        public IActionResult AllCareerExpertList()
        {
            int count = 0;
            CareerExpertListModel model = new CareerExpertListModel();

            model.States      = _classBookModelFactory.PrepareStateDropDown();
            model.ClassesList = _classBookModelFactory.PrepareClassesDropDown();
            model.TeacherList = _classBookModelFactory.PrepareTeacherDropDown();
            FilterParameter filterParameterModel = new FilterParameter();

            model.CareerExpertModel = _classBookService.AllCareerExpertListModel(filterParameterModel, out count, 1);
            model.Pager             = new Pager(count, 1);
            return(View(model));
        }