public static List <Payment> GetPayments(bool?state = true) { var paymentBLL = new PaymentBLL(); ListPayments = paymentBLL.GetPayments(state); return(ListPayments); }