// GET: Cinema public async Task <IActionResult> Index(CinemaQueryParameter param = null, int pageIndex = 1, int pageSize = 10) { var paged = await CinemaQueryEntry.PagedAsync(param, pageIndex, pageSize); var result = paged.MapPaged <CinemaViewModel>(); return(View(result)); }
public async Task <IPaged <CinemaViewModel> > Get([FromQuery] CinemaQueryParameter param = null, int pageIndex = 1, int pageSize = 10) { var paged = await CinemaQueryEntry.PagedAsync(param, pageIndex, pageSize); var result = paged.MapPaged <CinemaViewModel>(); return(result); }