//房屋板块的保存或更新 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); } } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(myhouse.Model.Section model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(myhouse.Model.Section model) { return(dal.Add(model)); }