Example #1
0
        public string getIncome(string income)
        {
            info_incomeModel ic = new info_incomeModel();

            ic.selectincome_id(income);

            return(ic.income_name);
        }
Example #2
0
        public void del_income(string id)
        {
            info_incomeModel ic = new info_incomeModel();

            ic.selectincome_id(id);
            ic.insertIncomeLOG();
            ic.event_status = "D";
            ic.updateIncome();
        }
Example #3
0
        public IActionResult editIncome(string income_id, string income_edit)
        {
            info_incomeModel ic = new info_incomeModel();

            ic.selectincome_id(income_id);
            ic.insertIncomeLOG();
            ic.income_name  = income_edit;
            ic.event_status = "U";
            ic.updateIncome();

            return(RedirectToAction("income", "Information"));
        }