public async Task <IActionResult> DeleteExtendedSection([FromRoute] long applicationNumber, [FromRoute] int arrangementRequestId,
                                                                [FromRoute] string sectionName)
        {
            try
            {
                var isDeleted = await _arrangementRequestRepository.DeleteExtendedDataSection(applicationNumber, arrangementRequestId, sectionName);

                if (isDeleted.HasValue)
                {
                    return(NoContent());
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (KeyNotFoundException e)
            {
                return(BadRequest(e.Message));
            }
            catch (Exception e)
            {
                _logger.LogError(e, "An error occurred while deleting extended section");
                return(StatusCode(500));
            }
        }