Exemple #1
0
        /// <summary>
        /// 我的抽奖记录
        /// </summary>
        /// <returns></returns>
        public ActionResult MyDrawings(int? pageIndex,bool? isWin)
        { 
            ViewData[SessionKey.VwUserMenu] = "draw";
            ViewData["isWin"] = isWin;
            var cu = base.CurrentUser;
            var vm = new BaseViewModel<Drawings>();
            if (pageIndex.HasValue)
                vm.PageIndex = pageIndex.Value;
            var list = _uow.DrawingsService.GetQueryList(t => t.UserId == cu.Id);
            if (isWin.HasValue)
                list = list.Where(t => t.IsWinner == isWin.Value);

            vm.PageList = new Common.Helper.PageList<Drawings>(list.OrderByDescending(t => t.CreateTime), vm.PageIndex, vm.PageCount);
            
            return View(vm);
        }
Exemple #2
0
 /// <summary>
 /// 集善网爱心捐赠
 /// </summary>
 /// <returns></returns>
 public ActionResult MyDonations(int? pageIndex)
 {
     ViewData[SessionKey.VwUserMenu] = "mydonation";
     var cu = base.CurrentUser;
     var vm = new BaseViewModel<Order>();
     if (pageIndex.HasValue)
         vm.PageIndex = pageIndex.Value;
     var list = _uow.OrderService.GetQueryList(t => t.UserId == cu.Id).OrderByDescending(t => t.CreateTime);
     vm.PageList = new Common.Helper.PageList<Order>(list, vm.PageIndex, vm.PageCount);
     return View(vm);
 }