Exemplo n.º 1
0
    static public void followorcancel(string str)
    {
        if (user_id == null)
        {
            System.Web.HttpContext.Current.Response.Write("<script>alert('你还没有登录!先去登录吧');location.href='/Views/Index/Index.aspx'</script>");
        }
        Follow follow = new Follow();

        follow.fanId     = user_id;
        follow.accountId = article.accountId;
        if (str == "关注作者")
        {
            followDao.Insert(follow);
        }
        else if (str == "取消关注")
        {
            followDao.Delete(follow);
        }
    }
Exemplo n.º 2
0
 public bool Delete(Follow follow)
 {
     return(dao.Delete(follow));
 }