Esempio n. 1
0
        // 我的签到记录
        // 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));
        }
Esempio n. 2
0
        // 我的签到记录
        // 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);
        }