コード例 #1
0
        public JsonResult AddFee(tbl_fees_validation model)
        {
            try
            {
                db_lendingEntities db = new db_lendingEntities();

                tbl_fees tbl = new tbl_fees();

                tbl.fees_description = model.fees_description;

                db.tbl_fees.Add(tbl);

                db.SaveChanges();

                return(Json("Success", JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json("Failed", JsonRequestBehavior.DenyGet));

                throw ex;
            }
        }
コード例 #2
0
 public JsonResult UpdateFee(tbl_fees_validation model)
 {
     return(Json("Success", JsonRequestBehavior.AllowGet));
 }