// 我的签到记录 // 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: /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); }