public async Task UpdateAsync(Consent consent) { var document = consent.ToDocument(); await _repository.UpsertConsent(document); }