public IEnumerable <CirclePost> GetMy() { HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"]; HttpRequestBase request = context.Request; Authentication authentication = new Authentication(request); if (!string.IsNullOrEmpty(authentication.state)) { return(null); } List <CirclePost> CirclePostList = new CirclePostBLL().GetCirclePost(o => o.UserID == authentication.userID && ((o.State & 16) == 0) && ((o.State & 32) == 0), o => o.CreateTime) .Select(o => new CirclePost() { CirclePostID = o.CirclePostID, CircleTypeID = o.CircleTypeID, Title = o.Title, User = new User() { NickName = ((o.State & 64) > 0) ? "匿名" : o.User.NickName, UserExtend = new UserExtend() { ExperienceLevel = o.User.UserExtend.ExperienceLevel, }, UserID = o.UserID, Gender = o.User.Gender, Location = o.User.Location, Type = o.User.Type.getUserType() }, UserID = o.UserID, ReplyNum = o.ReplyNum, Detail = ((o.State & 1) > 0) ? "未审核" : (((o.State & 32) > 0) ? "管理员删除" : (((o.State & 16) > 0) ? "用户删除" : "")), CreateTime = o.CreateTime, State = ((o.State & 1) > 0) ? 1 : (((o.State & 32) > 0) ? 0 : (((o.State & 16) > 0) ? 0 : 1)), }).ToList(); return(CirclePostList.OrderByDescending(o => o.CreateTime)); }