Skip to content

Commit

Permalink
One more issue fixed with "Pickup in store" provider. Paging didn't p…
Browse files Browse the repository at this point in the history
…roperly work
  • Loading branch information
AndreiMaz committed Aug 22, 2016
1 parent 1f44cbe commit adc1e42
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -68,7 +68,8 @@ public ActionResult List(DataSourceRequest command)
if (!_permissionService.Authorize(StandardPermissionProvider.ManageShippingSettings))
return Content("Access denied");

var model = _storePickupPointService.GetAllStorePickupPoints(0, command.Page - 1, command.PageSize).Select(x =>
var pickupPoints = _storePickupPointService.GetAllStorePickupPoints();
var model = pickupPoints.Select(x =>
{
var store = _storeService.GetStoreById(x.StoreId);
return new StorePickupPointModel
Expand All @@ -85,7 +86,7 @@ public ActionResult List(DataSourceRequest command)
return Json(new DataSourceResult
{
Data = model,
Total = model.Count
Total = pickupPoints.TotalCount
});
}

Expand Down

0 comments on commit adc1e42

Please sign in to comment.