コード例 #1
0
        // GET: Category
        public ActionResult Index(string searchValue = "")
        {
            var model = new Models.CategoryPaginationResult()
            {
                Page        = 1,
                SearchValue = searchValue,
                PageSize    = AppSettings.DefaultPagesize,
                RowCount    = CatalogBLL.Categories_Count(searchValue),
                Data        = CatalogBLL.Categories_List(searchValue)
            };

            return(View(model));
        }
コード例 #2
0
        // GET: Category
        public ActionResult Index(int page = 1, string searchValue = "")
        {
            int             pageSize       = 10;
            int             rowCount       = 0;
            List <Category> listOfCategory = CatelogBLL.ListOfCategories(page, pageSize, searchValue, out rowCount);
            var             model          = new Models.CategoryPaginationResult()
            {
                Page        = page,
                PageSize    = pageSize,
                RowCount    = rowCount,
                SearchValue = searchValue,
                Data        = listOfCategory
            };

            return(View(model));
        }
コード例 #3
0
        // GET: Category
        /// <summary>
        ///  Hiển thị trang chủ của thể loại
        /// </summary>


        public ActionResult Index(int page = 1, string searchValue = "")
        {
            int             pageSize       = 3;
            int             rowCount       = 0;
            List <Category> listOfCategory = CataLogBLL.ListOfCategory(page, pageSize, searchValue, out rowCount);
            var             model          = new Models.CategoryPaginationResult()
            {
                Page        = page,
                PageSize    = pageSize,
                RowCount    = rowCount,
                Data        = listOfCategory,
                SearchValue = searchValue
            };

            //  int pagesize = 3;
            // int rowcount = 0;
            // list<supplier> model = catalogbll.listofsupplier(page, pagesize, searchvalue, out rowcount);
            //  viewbag.rowcount = rowcount;
            return(View(model));
        }
コード例 #4
0
        // GET: Category
        public ActionResult Index(int page = 1, string searchValue = "")
        {
            int             pageSize       = 5;
            int             rowCount       = 0;
            List <Category> listOfCategory = CatalogBLL.ListOfCategories(page, pageSize, searchValue, out rowCount);
            var             model          = new Models.CategoryPaginationResult()
            {
                Page        = page,
                PageSize    = pageSize,
                RowCount    = rowCount,
                SearchValue = searchValue,
                Data        = listOfCategory
            };

            return(View(model));
            //int pageSize = 3;
            //int rowCount = 0;
            //List<Supplier> model = CatalogBLL.ListOfSuppliers(page, pageSize, searchValue, out rowCount);
            //ViewBag.RowCount = rowCount;
            //return View(model);
        }