//================================ /// <summary> /// me_增加消息 /// </summary> public void addmessage(int ID, string UsName, string AcText, int BbTag) { //增加记录 BCW.farm.Model.NC_messagelog model = new BCW.farm.Model.NC_messagelog(); model.type = BbTag; model.UsId = ID; model.UsName = UsName; model.AcText = AcText; model.AddTime = DateTime.Now; new BCW.farm.BLL.NC_messagelog().Add(model); }
/// <summary> /// 更新一条数据 /// </summary> public void Update(BCW.farm.Model.NC_messagelog model) { dal.Update(model); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(BCW.farm.Model.NC_messagelog model) { return(dal.Add(model)); }