Ejemplo n.º 1
0
        public void del_type_payment(string id)
        {
            typePaymentModel tp = new typePaymentModel();

            tp.tp_id = id;
            tp.del_type_payment();
        }
Ejemplo n.º 2
0
        public string select_type_payment(string id)
        {
            typePaymentModel tp = new typePaymentModel();

            tp.select_type_payment("tp_id = '" + id + "'");

            return(tp.tp_name);
        }
Ejemplo n.º 3
0
        public IActionResult typePayment()
        {
            typePaymentModel tp = new typePaymentModel();

            ViewData["type_payment"] = tp.list_type_payment();

            return(View());
        }
Ejemplo n.º 4
0
        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"));
        }
Ejemplo n.º 5
0
        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"));
        }
Ejemplo n.º 6
0
        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());
        }