예제 #1
0
 public ActionResult SaveRuleForm(string keyValue, TCRuleEntity entity)
 {
     try
     {
         TCRuleBLL tCRuleBLL = new TCRuleBLL();
         if (!string.IsNullOrWhiteSpace(keyValue))
         {
             //修改
             tCRuleBLL.Update(keyValue, entity);
         }
         else
         {
             //新增
             tCRuleBLL.Insert(entity);
         }
         return(Success("成功"));
     }
     catch (Exception ex)
     {
         return(Error(ex.Message));
     }
 }
예제 #2
0
 public void Insert(TCRuleEntity entity)
 {
     service.Insert(entity);
 }
예제 #3
0
 public void Update(string keyValue, TCRuleEntity entity)
 {
     service.Update(keyValue, entity);
 }