using Nop.Core.Domain.Polls; using Nop.Web.Areas.Admin.Models.Polls; namespace Nop.Web.Areas.Admin.Factories; /// /// Represents the poll model factory /// public partial interface IPollModelFactory { /// /// Prepare poll search model /// /// Poll search model /// /// A task that represents the asynchronous operation /// The task result contains the poll search model /// Task PreparePollSearchModelAsync(PollSearchModel searchModel); /// /// Prepare paged poll list model /// /// Poll search model /// /// A task that represents the asynchronous operation /// The task result contains the poll list model /// Task PreparePollListModelAsync(PollSearchModel searchModel); /// /// Prepare poll model /// /// Poll model /// Poll /// Whether to exclude populating of some properties of model /// /// A task that represents the asynchronous operation /// The task result contains the poll model /// Task PreparePollModelAsync(PollModel model, Poll poll, bool excludeProperties = false); /// /// Prepare paged poll answer list model /// /// Poll answer search model /// Poll /// /// A task that represents the asynchronous operation /// The task result contains the poll answer list model /// Task PreparePollAnswerListModelAsync(PollAnswerSearchModel searchModel, Poll poll); }