public List <PaymentMethod> GetAllPaymentbyPaging(out int totalrecords, PaymentMethod model) { List <PaymentMethod> paymentMethods; try { paymentMethods = _paymentMethodRepository.GetAllPaymentbyPaging(out totalrecords, model); } catch (Exception exception) { throw new Exception(exception.Message); } return(paymentMethods); }