コード例 #1
0
 public void DeleteCaseById()
 {
     int id = int.Parse(Request.Form["id"]);
     transactionModel tm = new transactionModel();
     tm.DeleteCaseById(id);
     Response.Write("success");
 }
コード例 #2
0
        public void EditCase()
        {
            int id = int.Parse(Request.Form["caseid"]);
            string casename = Request.Form["casename"];
            int defaultPrice = int.Parse(Request.Form["casedefaultprice"]);

            if (casename != "" && casename != null)
            {
                transactionModel tm = new transactionModel();
                tm.editCase(id, casename, defaultPrice);
            }

            Response.Write("success");
        }
コード例 #3
0
 public void AddNewCase()
 {
     string casename = Request.Form["casename"];
     int defaultPrice = int.Parse(Request.Form["casedefaultprice"]);
     if (casename != "" && casename != null)
     {
         transactionModel tm = new transactionModel();
         tm.addNewCase(casename, defaultPrice);
     }
     Response.Write("success");
 }