示例#1
0
 //房屋板块的保存或更新
 public bool saveorupdate(myhouse.Model.Section section)
 {
     if (section.sid > 0)
     {
         return(this.Update(section));
     }
     else
     {
         if (this.Add(section) > 0)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
示例#2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(myhouse.Model.Section model)
 {
     return(dal.Update(model));
 }
示例#3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(myhouse.Model.Section model)
 {
     return(dal.Add(model));
 }