public async Task <IActionResult> ProductList(ProductSearchViewModel search, PaginationViewModel page) { var model = await _productRepostitory.LoadAsyncCount( page.CurrentPage, page.PageSize, search); this.TotalNumber = model.Item1; ViewBag.SearchModel = search; return(PartialView(model.Item2)); }
public async Task <IActionResult> Index(ProductSearchViewModel searchModel = null) { var model = await _productRepostitory.LoadAsyncCount( this.CurrentPage, this.PageSize, searchModel); this.TotalNumber = model.Item1; ViewBag.Groups = await _productGroupRepository.GetListAsync(); ViewBag.SearchModel = searchModel; return(View(model.Item2)); }