public ActionResult Result(Criteria criteria) { var model = new ResultDto(); var query = _repo.Query<MatchView>(criteria, x => x.ResultHome.HasValue && x.ResultAway.HasValue); var mapper = MatchDto.ConfigMapper().CreateMapper(); var list = mapper.Map<IEnumerable<MatchDto>>(query.AsEnumerable()); model.Criteria = criteria; model.Data = list; return View(model); }
// 我的签到记录 // GET: /Club/MyLogSignIn public ActionResult MyLogSignIn(Criteria criteria) { var model = new MyLogSignInDto(); var query = _repo.Query<LogSignIn>(criteria, x => x.UserGuid == _user.ID && x.SignInTime > DateTime.Now.AddMonths(-1)); var mapper = LogSignInDto.ConfigMapper().CreateMapper(); var list = mapper.Map<IEnumerable<LogSignInDto>>(query.AsEnumerable()); model.Criteria = criteria; model.Data = list; return View(model); }
// 我的盈亏情况 // GET: /Casino/Bonus public ActionResult MyBonus(Criteria criteria) { var model = new MyBonusDto(); var query = _repo.Query<BonusView>(criteria, x => x.UserID == AcnID); var mapper = BonusDto.ConfigMapper().CreateMapper(); var list = mapper.Map<IEnumerable<BonusDto>>(query.AsEnumerable()); model.Criteria = criteria; model.Data = list; return View(model); }