public IActionResult GetArrangementRequestsForApplication([FromRoute] long applicationNumber, [FromQuery] string include,
                                                                  [FromQuery] string trim, [FromQuery] bool includePotential = false)
        {
            List <ArrangementRequest> arrangementRequests = _arrangementRequestRepository.GetArrangementRequests(applicationNumber,
                                                                                                                 include, trim, includePotential);

            if (arrangementRequests != null)
            {
                return(new ObjectResult(new { ArrangementRequests = arrangementRequests }));
            }
            return(NotFound());
        }