示例#1
0
        public async Task <IActionResult> GetAsync([FromQuery] int page = 1)
        {
            var total = await _incidentService.CountAllWithOngAsync();

            Response.Headers.Add("X-Total-Count", total.ToString());
            var result = await _incidentService.SelectWithOngPaginatedAsync(page);

            return(Ok(result));
        }