public async Task <InstanceSettingsDto> GetEntityAsync(Guid id)
        {
            var entity = await _repository.GetEntityAsync(id);

            if (entity == null)
            {
                throw new NotFoundException();
            }

            return(_mapper.Map <InstanceSettings, InstanceSettingsDto>(entity));
        }