예제 #1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public string Add(Topicsys.Model.t_topic model)
 {
     if (dal.Add(model))
     {
         return("添加成功!");
     }
     else
     {
         return("添加失败");
     }
 }
예제 #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Topicsys.Model.t_topic model)
 {
     return(dal.Update(model));
 }