Interface IFormConsentAgreementService
- Namespace
- CMS.DataProtection
- Assembly
- CMS.DataProtection.dll
Service to agree consent in forms.
public interface IFormConsentAgreementService
- Extension Methods
Methods
Agree(ContactInfo, ConsentInfo, BaseInfo)
ConsentAgreementInfo Agree(ContactInfo contact, ConsentInfo consent, BaseInfo data)
Parameters
contactContactInfoContact.
consentConsentInfoConsent.
dataBaseInfoInfo object being edited by the form.
Returns
Remarks
When contact is null, ensures contact and maps data to a contact based on mapping configuration of an object.
Exceptions
- ArgumentNullException
Thrown when
consentordatais null.
Revoke(ContactInfo, ConsentInfo, BaseInfo)
ConsentAgreementInfo Revoke(ContactInfo contact, ConsentInfo consent, BaseInfo data)
Parameters
contactContactInfoContact.
consentConsentInfoConsent.
dataBaseInfoInfo object being edited by the form.
Returns
- ConsentAgreementInfo
The revoked agreement.
Remarks
When contact is null, ensures contact and maps data to a contact based on mapping configuration of an object.
Exceptions
- ArgumentNullException
Thrown when
consentordatais null.