public ActionResult Index(int page = 1, int pageSize = 50) { var methods = _paymentMethodService.Query() .OrderByDescending(x => x.Id) .Paginate(page - 1, pageSize) .Transform(x => new PaymentMethodRowModel(x)) .ToPagedList(); return(View(methods)); }