Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <ProtocolDto> > > GetProtocols([FromQuery] ProtocolParams protocolParams)
        {
            var protocols = await _protocolRepository.GetProtocols(protocolParams);

            Response.AddPaginationHeader(protocols.CurrentPage, protocols.PageSize, protocols.TotalCount, protocols.TotalPages);

            return(protocols);
        }