예제 #1
0
        public ActionResult Weaker(int id)
        {
            var user = new UserHelper().GetUserEntity(id);

            var wishList = new WishHelper().GetSiteWishList().ToList();

            ViewBag.New          = wishList.OrderByDescending(m => m.DateStart).Take(5).ToList();
            ViewBag.AlreadyApply = wishList.Where(m => m.Status == "进行中");

            ViewBag.Publish = wishList.Where(m => m.UserID == id);
            ViewBag.Apply   = wishList.Where(m => m.ApplyUserID == id);
            ViewBag.Weaker  = "current";

            return(View(user));
        }
예제 #2
0
        public ActionResult Wish(int id)
        {
            var wish     = new WishHelper().GetWishByID(id);
            var wishList = new WishHelper().GetSiteWishList().ToList();

            ViewBag.New          = wishList.OrderByDescending(m => m.DateStart).Take(5).ToList();
            ViewBag.AlreadyApply = wishList.Where(m => m.Status == "进行中");
            ViewBag.Wish         = "current";

            return(View(wish));
        }