Show / Hide Table of Contents

Class NewsletterRecordPublicController

Inheritance
object
CmsKitProCommonController
NewsletterRecordPublicController
Implements
INewsletterRecordPublicAppService
IApplicationService
IRemoteService
Namespace: Volo.CmsKit.Public.Newsletters
Assembly: Volo.CmsKit.Pro.Common.HttpApi.dll
Syntax
[Area("cms-kit-pro-common")]
[Route("api/cms-kit-public/newsletter")]
public class NewsletterRecordPublicController : CmsKitProCommonController, INewsletterRecordPublicAppService, IApplicationService, IRemoteService

Constructors

NewsletterRecordPublicController(INewsletterRecordPublicAppService)

Declaration
public NewsletterRecordPublicController(INewsletterRecordPublicAppService newsletterRecordPublicAppService)
Parameters
Type Name Description
INewsletterRecordPublicAppService newsletterRecordPublicAppService

Properties

NewsletterRecordPublicAppService

Declaration
protected INewsletterRecordPublicAppService NewsletterRecordPublicAppService { get; }
Property Value
Type Description
INewsletterRecordPublicAppService

Methods

CreateAsync(CreateNewsletterRecordInput)

Declaration
[HttpPost]
public virtual Task CreateAsync(CreateNewsletterRecordInput input)
Parameters
Type Name Description
CreateNewsletterRecordInput input
Returns
Type Description
Task

GetNewsletterPreferencesAsync(string)

Declaration
[HttpGet]
[Route("emailAddress")]
public virtual Task<List<NewsletterPreferenceDetailsDto>> GetNewsletterPreferencesAsync(string emailAddress)
Parameters
Type Name Description
string emailAddress
Returns
Type Description
Task<List<NewsletterPreferenceDetailsDto>>

GetOptionByPreferenceAsync(string)

Declaration
[HttpGet]
[Route("preference-options")]
public virtual Task<NewsletterEmailOptionsDto> GetOptionByPreferenceAsync(string preference)
Parameters
Type Name Description
string preference
Returns
Type Description
Task<NewsletterEmailOptionsDto>

UpdatePreferencesAsync(UpdatePreferenceRequestInput)

Declaration
[HttpPut]
public virtual Task UpdatePreferencesAsync(UpdatePreferenceRequestInput input)
Parameters
Type Name Description
UpdatePreferenceRequestInput input
Returns
Type Description
Task

Implements

INewsletterRecordPublicAppService
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
In this article
Back to top Powered by Volosoft