Ejemplo n.º 1
0
        public ActionResult <PagedResponse <List <Usuario> > > GetUsuarios([FromQuery] PaginationFilter filter)
        {
            var route      = Request.Path.Value;
            int countPages = 0;
            var pagedData  = _usuarioBusiness.GetAll(filter, out countPages).ToList();
            PagedResponse <List <Usuario> > pagedReponse = PaginationHelper.CreatePagedReponse(pagedData, filter, countPages, _uriService, route);

            return(Ok(pagedReponse));
        }