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