public ActionResult GuessYourInterest() { //只允许已登录用户访问自己 bool alreadyLogin = true; String userId = HttpContext.User.Identity.Name; #region 构造页面数据对象 //获取推荐的兴趣6个 IList<BiZ.InterestCenter.Interest> interestList = BiZ.Recommendation.InterestRecommendation.GuessYourInterest(userId, 6); //页面数据对象 Models.PageModels.InterestListControlModel interestModel = new Models.PageModels.InterestListControlModel(interestList); interestModel.UserID = userId; interestModel.MemberID = userId; interestModel.AlreadyLogon = alreadyLogin; #endregion return View(interestModel); }
public ActionResult TheyLike(String id) { bool alreadyLogin = true; String userId = HttpContext.User.Identity.Name; IList<BiZ.InterestCenter.Interest> interestList = BiZ.Recommendation.InterestRecommendation.GetMemberFavorMembersTaste(id != null ? id : userId, 6); Models.PageModels.InterestListControlModel interestModel = new Models.PageModels.InterestListControlModel(interestList); interestModel.UserID = userId; interestModel.MemberID = id != null ? id : userId; interestModel.AlreadyLogon = alreadyLogin; return View(interestModel); }
public ActionResult TheyFavorsInteresting() { String objid = HttpContext.Request["iid"]; Models.PageModels.InterestListControlModel interestmodel = null; if (objid != null) { IList<BiZ.InterestCenter.Interest> interestlist = BiZ.Recommendation.InterestRecommendation.GetElseInterestIDsMemberLikeWhereWhoLikeThis(objid, 8); interestmodel = new Models.PageModels.InterestListControlModel(interestlist); } return View(interestmodel); }