public async Task <IActionResult> SetAcceptedValues([FromRoute] long applicationNumber,
                                                            [FromRoute] int arrangementRequestId, [FromBody] AcceptedValues command)
        {
            try
            {
                var application = await _applicationRepository.GetAsync(applicationNumber);

                if (application != null)
                {
                    var setAcceptedValues = await _arrangementRequestRepository
                                            .SetAcceptedValues(applicationNumber, arrangementRequestId, command, application);

                    if (setAcceptedValues == null)
                    {
                        return(NotFound());
                    }
                    return(Ok());
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (KeyNotFoundException e)
            {
                this._logger.LogError(e, "An error occurred while updating Arrangement Request for arrangementRequestId {arrangementRequestId} on application {ApplicationNumber}", arrangementRequestId, applicationNumber);
                return(BadRequest(new { message = e.Message }));
            }
            catch (Exception e)
            {
                this._logger.LogError(e, "An error occurred while updating Arrangement Request for arrangementRequestId {arrangementRequestId} on application {ApplicationNumber}", arrangementRequestId, applicationNumber);
                return(StatusCode(500));
            }
        }