Exemplo n.º 1
0
 public bool updateBlogpl(int blogid, int plnum)
 {
     starweibo.Model.blogInfo model     = new starweibo.Model.blogInfo();
     starweibo.BLL.blogInfo   bllmnblog = new starweibo.BLL.blogInfo();
     model.blogId = blogid;
     model.plNum  = plnum;
     return(bllmnblog.Updatepl(model));
 }
Exemplo n.º 2
0
 public bool updateBlogZan(int blogid, int zannum)
 {
     starweibo.Model.blogInfo model     = new starweibo.Model.blogInfo();
     starweibo.BLL.blogInfo   bllmnblog = new starweibo.BLL.blogInfo();
     model.blogId = blogid;
     model.zanNum = zannum;
     return(bllmnblog.UpdateZan(model));
 }
Exemplo n.º 3
0
 public int publishBlog(int userId, string content, int parentid)
 {
     starweibo.Model.blogInfo oneblog = new starweibo.Model.blogInfo();
     starweibo.BLL.blogInfo   bllblog = new starweibo.BLL.blogInfo();
     oneblog.blogAuthorId = userId;
     oneblog.blogContent  = content;
     if (parentid != 0)
     {
         oneblog.parentId = parentid;
     }
     return(bllblog.Add(oneblog));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 更新评论的数据
 /// </summary>
 public bool Updatepl(starweibo.Model.blogInfo model)
 {
     return(dal.Updatepl(model));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(starweibo.Model.blogInfo model)
 {
     return(dal.Add(model));
 }