public IActionResult SortEventData([FromBody] OrderRequest orderRequest) { try { IEnumerable <EventDto> sorted_events = _eventLogic.SortEventData(orderRequest); return(Ok(sorted_events)); } catch (Exception ex) { return(StatusCode(500, "Internal server error")); } }