public ActionResult Index(string tag,int? pageIndex) { ViewData["tag"] = tag; var model = new BaseViewModel<Content>(); if (pageIndex.HasValue) model.PageIndex = pageIndex.Value; var list = _uow.ContentService.GetQueryList(t => t.TagName == tag).OrderByDescending(t => t.Id); model.PageList = new Common.Helper.PageList<Content>(list, model.PageIndex, model.PageCount); return View(model); }
public ActionResult AccountLog(int id,int? pageIndex) { var model = new BaseViewModel<AccountLog>(); if(pageIndex.HasValue) model.PageIndex = pageIndex.Value; var acc = _uow.GetUserAccountDto(id); ViewData["account"] = acc; var list = _uow.AccountLogService.GetQueryList(t => t.UserId == acc.UserId).OrderByDescending(t => t.CreateTime).ThenByDescending(t => t.LogId); model.PageList = new Common.Helper.PageList<AccountLog>(list, model.PageIndex, model.PageCount); return View(model); }
public ActionResult Account(int? pageIndex,string userName) { var model = new BaseViewModel<UserAccountDto>(); if(pageIndex.HasValue) model.PageIndex = pageIndex.Value; var list = _uow.GetAccountList(userName); model.PageList = new Common.Helper.PageList<UserAccountDto>(list, model.PageIndex, model.PageCount); return View(model); }
public ActionResult Card(int? pageIndex) { pageIndex = pageIndex ?? 1; var model = new BaseViewModel<FreeCard>(); model.PageIndex = pageIndex.Value; var list = _uow.FreeCardService.GetQueryList(); model.PageList = new Common.Helper.PageList<FreeCard>(list.OrderByDescending(t => t.CreateTime), model.PageIndex, model.PageCount); return View(model); }