Exemplo n.º 1
0
        public async Task <IActionResult> SupplierItem(string supplierId, int?page = 1)
        {
            List <ServiceReference_Item.Item> lst_ItembyCate;

            lst_ItembyCate = (await itm.findItembySupIdAsync(supplierId)).ToList();
            var items = (from a in lst_ItembyCate select a).AsQueryable();

            ViewBag.page = page;
            int pageSize = 10;

            return(View(PaginatedList <ServiceReference_Item.Item> .CreateAsync(items, page ?? 1, pageSize)));
        }