public IActionResult GetExtendedPartyData([FromRoute] long applicationNumber, [FromRoute] int arrangementRequestId)
        {
            try
            {
                var data = _arrangementRequestRepository.GetExtendedArrangementData(applicationNumber, arrangementRequestId);
                if (data == null)
                {
                    return(NotFound());
                }

                return(new ObjectResult(data));
            }
            catch (KeyNotFoundException e)
            {
                return(BadRequest(new { message = e.Message }));
            }
            catch (Exception e)
            {
                _logger.LogError(e, "An error occurred while getting extended data for arrangement request");
                return(StatusCode(500));
            }
        }