public List <starweibo.Model.messageInfo> loadingZanSc(int typeid) { starweibo.BLL.messageInfo bllmnblog = new starweibo.BLL.messageInfo(); List <starweibo.Model.messageInfo> model = new List <starweibo.Model.messageInfo>(); DataSet ds = bllmnblog.GetList("userId='" + Convert.ToInt32(Session["userid"]) + "' and msgTypeId='" + typeid + "'"); model = bllmnblog.DataTableToList(ds.Tables[0]); return(model); }
public int publishMessage(int blogid, string content, int typeid, int parentid) { starweibo.Model.messageInfo oneMsg = new starweibo.Model.messageInfo(); starweibo.BLL.messageInfo bllMsg = new starweibo.BLL.messageInfo(); oneMsg.userId = Convert.ToInt32(Session["userid"]); oneMsg.blogId = blogid; oneMsg.msgContent = content; oneMsg.msgTypeId = typeid; oneMsg.parentId = parentid; return(bllMsg.Add(oneMsg)); }