Exemplo n.º 1
0
        public ActionResult SearchCategory(string p_name)
        {
            try
            {
                int    fromRow    = 0;
                string htmlPaging = "";

                Category_BL            _Category_BL = new Category_BL();
                List <Categories_Info> _lst_data    = _Category_BL.Category_Search(p_name);

                List <Categories_Info> lstDataBreakPage = NaviCommon.CommonFuc.GetPaging <Categories_Info>(_lst_data, 1, ref fromRow, ref htmlPaging, "Loại sản phẩm");
                ViewBag.Paging    = htmlPaging;
                ViewBag.FromRow   = fromRow;
                ViewBag.Obj       = lstDataBreakPage;
                ViewBag.SumRecord = _lst_data.Count;

                return(PartialView("PartialViewTableslistCategory"));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("PartialViewTableslistCategory"));
            }
        }