public ActionResult RatesList(GridCommand command) { int totalCount; var data = _shippingByWeightService.GetShippingByWeightModels(command.Page - 1, command.PageSize, out totalCount); var model = new GridModel <ShippingByWeightModel> { Data = data, Total = totalCount }; return(new JsonResult { Data = model }); }