Beispiel #1
0
        public ActionResult LoginLog(string key, int result = -1, int pageIndex = 1)
        {
            var limit  = DefaultPageSize;
            var offset = (pageIndex - 1) * limit;
            var count  = 0;
            var items  = _loginLogService.QueryByUser(key, UserName, offset, limit, out count, result);
            var model  = new PagedList <LoginLogViewModel>(items, pageIndex, limit, count);

            ViewBag.key    = key;
            ViewBag.result = result;
            return(View(model));
        }