public ActionResult Index(string key, int result = -1, int pageIndex = 1) { var limit = DefaultPageSize; var offset = (pageIndex - 1) * limit; var count = 0; var items = _loginLogService.Query(key, offset, limit, out count, result); var model = new PagedList <LoginLogViewModel>(items, pageIndex, limit, count); ViewBag.key = key; ViewBag.result = result; return(View(model)); }
public Task <IResultModel> Query([FromQuery] LoginLogQueryModel model) { return(_service.Query(model)); }