Exemplo n.º 1
0
        public ActionResult CategorySearch()
        {
            CategorySearchModel Model = new CategorySearchModel();

            if (Session[ScreenController] != null)
            {
                Model = (CategorySearchModel)Session[ScreenController];
                Model.searchResultModel = new List <CategoryViewModel>();
                Model.searchResultModel = _categoryBL.Search(Model).ToPagedList(1, 100);
            }
            else
            {
                Model.searchResultModel = new List <CategoryViewModel>().ToPagedList(1, 100);
            }
            return(View(Model));
        }