public async Task <bool> DeleteEntityAsync(Guid id)
        {
            if (!await _repository.EntityExistsAsync(id))
            {
                throw new NotFoundException();
            }

            return(await _repository.RemoveEntityAsync(id));
        }