public Boolean Update(AddressENT entAddress, SqlInt32 AddressID, SqlInt32 UserID) { AddressDAL dalAddress = new AddressDAL(); if (dalAddress.Update(entAddress, AddressID, UserID)) { return(true); } else { Message = dalAddress.Message; return(false); } }
/// <summary> /// 根据主键ID更新一条记录 /// </summary> /// <param name="model">更新后的实体</param> /// <returns>执行结果受影响行数</returns> public int Update(Address model) { return(_dao.Update(model)); }