public static void AddingPayment(string description) { try { var paymentBLL = new PaymentBLL(); paymentBLL.AddPayment(description); } catch (Exception ex) { throw ex; } }
public dynamic AddPayment() { string name = Fun.Form("name"); PaymentBLL bll = new PaymentBLL(); if (!bll.AddPayment(name)) { return("失败"); } else { return("成功"); } }
private void btnPay_Click(object sender, EventArgs e) { try { if (paymentController.AddPayment(DateTime.Now, (float)moneyReceive.Value, cusChosen.Id())) { MessageBox.Show("Thu tien thanh cong"); Clear(); Load(); } } catch (Exception ex) { MessageBox.Show("Vui long kiem tra lai thong tin"); } }