public IActionResult UpdateRequest(short?page = 1) { ViewData[GlobalViewBagKeys.ECommerceService] = eCommerce; return(View(new ProductTypeUpdateRequestViewModel { UpdateRequests = eCommerce.GetProductTypeUpdateRequests((page - 1) * recordsPerPage, recordsPerPage), PagingInfo = new PagingInfo { CurrentPage = (short)page, RecordsPerPage = recordsPerPage, TotalRecords = eCommerce.CountProductTypeUpdateRequests() } })); }