Beispiel #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);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(myhouse.Model.Section model)
 {
     return(dal.Update(model));
 }
Beispiel #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(myhouse.Model.Section model)
 {
     return(dal.Add(model));
 }