Webiant Logo Webiant Logo
  1. No results found.

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

IPollModelFactory.cs

using Nop.Core.Domain.Polls;
using Nop.Web.Models.Polls;

namespace Nop.Web.Factories;

/// 
/// Represents the interface of the poll model factory
/// 
public partial interface IPollModelFactory
{
    /// 
    /// Prepare the poll model
    /// 
    /// Poll
    /// Whether to load a value indicating that customer already voted for this poll
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the poll model
    /// 
    Task PreparePollModelAsync(Poll poll, bool setAlreadyVotedProperty);

    /// 
    /// Get the poll model by poll system keyword
    /// 
    /// Poll system keyword
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the poll model
    /// 
    Task PreparePollModelBySystemNameAsync(string systemKeyword);

    /// 
    /// Prepare the home page poll models
    /// 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the list of the poll model
    /// 
    Task> PrepareHomepagePollModelsAsync();
}