Example #1
0
        // GET: Customer
        public ActionResult Index(int page = 1, string searchValue = "", string country = "")
        {
            var model = new Models.CustomerPaginationResult()
            {
                SearchValue = searchValue,
                Country     = country,
                Page        = page,
                PageSize    = AppSettings.DefaultPagesize,
                RowCount    = CatalogBLL.Customers_Count(searchValue, country),
                Data        = CatalogBLL.Customers_List(page, AppSettings.DefaultPagesize, searchValue, country)
            };

            return(View(model));
        }