public ViewResult Index(int page = 1)
 {
     ItemListViewModel model = new ItemListViewModel
     {
         Customers = context.Customers.OrderBy(x => x.Customer_ID).
                             Skip((page - 1) * pageSize).
                             Take(pageSize),
         pagingInfo = new PagingInfo
         {
             CurrentPage = page,
             TotalItems = context.Customers.Count(),
             ItemsPerPage = pageSize
         }
     };
     return View(model);
 }
 public ActionResult Index(int page = 1)
 {
     ItemListViewModel model = new ItemListViewModel
     {
         Catalogs = context.Catalogs
                     .OrderBy(c => c.Catalog_ID)
                     .Skip((page - 1) * pageSize)
                     .Take(pageSize),
         pagingInfo = new PagingInfo
         {
             TotalItems=context.Catalogs.Count(),
             CurrentPage=page,
             ItemsPerPage=pageSize
         }, 
     };         
     return View(model);
 }
        public ViewResult Index(int page=1)
        {
            ItemListViewModel model = new ItemListViewModel
            {
                Performers = context.Performers
                            .OrderBy(p=>p.Performer_Id)
                            .Skip((page-1)*PageSize)
                            .Take(PageSize),

                pagingInfo = new PagingInfo(){
                    CurrentPage=page,
                    TotalItems=context.Performers.Count(),
                    ItemsPerPage=PageSize
                }
            };
            //IEnumerable<Performer> model = context.Performers.AsQueryable();
            return View(model);
        }