public async Task <ApiResponse <List <TResponseModel> > > GetAllAsync(int parentId)
        {
            List <TEntity> responseEntities;

            try
            {
                responseEntities = await _parentChildrenCoreDto.AllAsync(parentId) as List <TEntity>;
            }
            catch (Exception exception)
            {
                return(BaseResponse.ResponseInternalServerError((List <TResponseModel>)null, exception));
            }

            var responseModel = _mapper.Map <List <TEntity>, List <TResponseModel> >(responseEntities);

            return(!responseModel.Any() ? BaseResponse.ResponseNotFound((List <TResponseModel>)null) : BaseResponse.ResponseOk(responseModel));
        }