Пример #1
0
 //添加
 public int Add(Huiyi h)
 {
     try
     {
         string sql = $" insert into Huiyi(HuiyiNei,StartTime,AId,CId,BeiZhu,HuiyiName,Shipin) values('{h.HuiyiNei}','{h.StartTime}',{h.AId},{h.CId},'{h.BeiZhu}','{h.HuiyiName}',{h.Shipin})";
         return(DbHelper.Execute(sql));
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
 public int Add(Huiyi h)
 {
     return(dal.Add(h));
 }
Пример #3
0
 public JsonResult Adds(Huiyi h)
 {
     return(Json(bll.Add(h)));
 }