public void del_type_payment(string id) { typePaymentModel tp = new typePaymentModel(); tp.tp_id = id; tp.del_type_payment(); }
public string select_type_payment(string id) { typePaymentModel tp = new typePaymentModel(); tp.select_type_payment("tp_id = '" + id + "'"); return(tp.tp_name); }
public IActionResult typePayment() { typePaymentModel tp = new typePaymentModel(); ViewData["type_payment"] = tp.list_type_payment(); return(View()); }
public IActionResult insert_type_payment(string type_pay) { typePaymentModel tp = new typePaymentModel(); tp.tp_name = type_pay; tp.insert_type_payment(); return(RedirectToAction("typePayment", "Information")); }
public IActionResult update_type_payment(string type_pay_edit, string type_pay_id) { typePaymentModel tp = new typePaymentModel(); tp.tp_name = type_pay_edit; tp.tp_id = type_pay_id; tp.update_type_payment(); return(RedirectToAction("typePayment", "Information")); }
public IActionResult payment() { typePaymentModel tp = new typePaymentModel(); ViewData["type_payment"] = tp.drop_type_payment(""); conditionPayModel cp = new conditionPayModel(); ViewData["conditionPay"] = cp.list_con_pay(); return(View()); }