class DemandResponseController {

	@RequestMapping(value = "/search", method = RequestMethod.POST)
	@ResponseBody
	public List<DemandResponseEventReadDto> search(@RequestBody List<DemandResponseEventFilter> filters,
			@RequestParam(value = "start", required = false) Long start,
			@RequestParam(value = "end", required = false) Long end,
			@RequestParam(value = "page", required = false) Integer page,
			@RequestParam(value = "size", required = false) Integer size, HttpServletResponse response) {
		Page<DemandResponseEvent> search = demandResponseEventService.search(filters, start, end, page, size);
		response.addHeader("X-total-page", String.valueOf(search.getTotalPages()));
		response.addHeader("X-total-count", String.valueOf(search.getTotalElements()));
		return dtoMapper.mapList(search, DemandResponseEventReadDto.class);
	}

}