コード例 #1
0
        // GET: Category
        public ActionResult Index(int page = 1, string searchValue = "")
        {
            int            pageSize      = 3;
            int            rowCount      = 0;
            List <Country> ListOfCountry = CountryBLL.ListOfCountries(page, pageSize, searchValue, out rowCount);
            var            model         = new CountryPaginationResult()
            {
                Page        = page,
                PageSize    = pageSize,
                RowCount    = rowCount,
                SearchValue = searchValue,
                Data        = ListOfCountry
            };

            return(View(model));
        }