Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

INewsletterModelFactory.cs

using Nop.Web.Models.Newsletter;

namespace Nop.Web.Factories;

/// <summary>
/// Represents the interface of the newsletter model factory
/// </summary>
public partial interface INewsLetterModelFactory
{
    /// <summary>
    /// Prepare the newsletter box model
    /// </summary>
    /// <returns>
    /// A task that represents the asynchronous operation
    /// The task result contains the newsletter box model
    /// </returns>
    Task<NewsLetterBoxModel> PrepareNewsLetterBoxModelAsync();

    /// <summary>
    /// Prepare the subscription activation model
    /// </summary>
    /// <param name="active">Whether the subscription has been activated</param>
    /// <returns>
    /// A task that represents the asynchronous operation
    /// The task result contains the subscription activation model
    /// </returns>
    Task<SubscriptionActivationModel> PrepareSubscriptionActivationModelAsync(bool active);
}