// GET: CaseStudies
        public ActionResult Index(long SCID = 0, int PageNo = 1, int PageSize = 5, string searchTerm = "")
        {
            CaseStudyManageModel  model    = new CaseStudyManageModel();
            CaseStudyGenViewModel _csmodel = new CaseStudyGenViewModel();

            _csmodel                    = ObjCaseStudies.GenCaseStudySelectPaged(SCID, PageNo, PageSize, searchTerm);
            model.GenCaseStudies        = _csmodel;
            model.Components            = ObjComp.GetComponentList("");
            model.GenComponentModelList = ObjComp.GetGenComponentList();//Component List
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_pvCaseStudiesList", model));
            }
            return(View(model));
        }
        // GET: Admin/CaseStudy
        public ActionResult Index(int PageNo = 1, int PageSize = 10, string searchTerm = "")
        {
            int TotalRecords           = 0;
            CaseStudyManageModel model = new CaseStudyManageModel();

            model.CaseStudyView = objCaseStudy.GetCaseStudyPaged(PageNo, PageSize, _sModel.SchoolID, searchTerm, out TotalRecords);
            model.PagingInfo    = new PagingInfo {
                CurrentPage = PageNo, ItemsPerPage = PageSize, TotalItems = TotalRecords
            };
            if (Request.IsAjaxRequest())
            {
                return(PartialView("_pvCaseStudyList", model));
            }
            return(View(model));
        }