public async Task <ActionResult <ApiResponse <PagedList <PaymentMethod> > > > GatPagedPaymentMethodList([FromQuery] PagedQuery query) { try { var pagedPaymentMethodList = await _paymentMethodService.GetPaginatedList(query); return(pagedPaymentMethodList.CreateSuccessResponse()); } catch (Exception exception) { return(BadRequest(exception.CreateErrorResponse())); } }