Пример #1
0
        public IActionResult GetTelemetryHistory([FromRoute] int id, [FromQuery] TelemetryFilter filter, int rowsPerPage = 20, int pageNumber = 1)
        {
            PaginatedElement <Telemetry> telemetries = telemetryService.GetByPool(id, filter, rowsPerPage, pageNumber);

            PaginatedDto <TelemetryDto> dto = mapper.Map <PaginatedDto <TelemetryDto> >(telemetries);

            dto.NextPageUrl = HttpContext.GetNextPageUrl(pageNumber < dto.PageCount);

            return(Ok(dto));
        }