public string Create(string id_sim, DateTime date_ex, DateTime invoice_date, DateTime date_cut, int postage, int fare, bool status) { if (checkIfExist()) { return("Hóa đơn này đã lập trong tháng " + date_ex.Month + " năm " + date_ex.Year); } else { bill_dal.setBill(id_sim, date_ex, invoice_date, date_cut, postage, fare, status); bill_dal.Create(); return("Thêm thành công hóa đơn và hóa đơn gửi đến mail khách hàng"); } }
public void Create(string id_sim, DateTime date_ex, DateTime date_cut, int postage, int fare, bool status) { bill_dal.setBill(id_sim, date_ex, date_cut, postage, fare, status); bill_dal.Create(); }