Ejemplo n.º 1
0
        // 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));
        }
Ejemplo n.º 2
0
        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);
        }