Exemplo n.º 1
0
        public IPagingList <ProjectProcurementDto> GetProcurements([FromServices] ProjectProcurementService service, [FromQuery] ProjectQueryRequest queryRequest)
        {
            IPagingList <ProjectProcurementDto> list = service.GetProcurements(queryRequest).ProjectedAsPagingList <ProjectProcurementDto>();

            return(list);
        }
Exemplo n.º 2
0
        public IActionResult Index([FromServices] ProjectProcurementService service, [FromQuery] ProjectQueryRequest queryRequest)
        {
            IPagingList list = service.GetProcurements(queryRequest).ProjectedAsPagingList <ProjectProcurementDto>();

            return(View(list));
        }