Метод | Описание | |
---|---|---|
AlreadyVoted ( int pollId, int customerId ) : bool |
Gets a value indicating whether customer already vited for this poll
|
|
DeletePoll ( Nop.Core.Domain.Polls.Poll poll ) : void |
Deletes a poll
|
|
DeletePollAnswer ( Nop.Core.Domain.Polls.PollAnswer pollAnswer ) : void |
Deletes a poll answer
|
|
GetPollAnswerById ( int pollAnswerId ) : Nop.Core.Domain.Polls.PollAnswer |
Gets a poll answer
|
|
GetPollById ( int pollId ) : Nop.Core.Domain.Polls.Poll |
Gets a poll
|
|
GetPollBySystemKeyword ( string systemKeyword, int languageId ) : Nop.Core.Domain.Polls.Poll |
Gets a poll
|
|
GetPolls ( int languageId, bool loadShownOnHomePageOnly, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
Gets poll collection
|
|
InsertPoll ( Nop.Core.Domain.Polls.Poll poll ) : void |
Inserts a poll
|
|
PollService ( IRepository |
||
UpdatePoll ( Nop.Core.Domain.Polls.Poll poll ) : void |
Updates the poll
|
public AlreadyVoted ( int pollId, int customerId ) : bool | ||
pollId | int | Poll identifier |
customerId | int | Customer identifier |
Результат | bool |
public DeletePoll ( Nop.Core.Domain.Polls.Poll poll ) : void | ||
poll | Nop.Core.Domain.Polls.Poll | The poll |
Результат | void |
public DeletePollAnswer ( Nop.Core.Domain.Polls.PollAnswer pollAnswer ) : void | ||
pollAnswer | Nop.Core.Domain.Polls.PollAnswer | Poll answer |
Результат | void |
public GetPollAnswerById ( int pollAnswerId ) : Nop.Core.Domain.Polls.PollAnswer | ||
pollAnswerId | int | Poll answer identifier |
Результат | Nop.Core.Domain.Polls.PollAnswer |
public GetPollById ( int pollId ) : Nop.Core.Domain.Polls.Poll | ||
pollId | int | The poll identifier |
Результат | Nop.Core.Domain.Polls.Poll |
public GetPollBySystemKeyword ( string systemKeyword, int languageId ) : Nop.Core.Domain.Polls.Poll | ||
systemKeyword | string | The poll system keyword |
languageId | int | Language identifier. 0 if you want to get all polls |
Результат | Nop.Core.Domain.Polls.Poll |
public GetPolls ( int languageId, bool loadShownOnHomePageOnly, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
||
languageId | int | Language identifier. 0 if you want to get all polls |
loadShownOnHomePageOnly | bool | Retrieve only shown on home page polls |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
Результат | IPagedList |
public InsertPoll ( Nop.Core.Domain.Polls.Poll poll ) : void | ||
poll | Nop.Core.Domain.Polls.Poll | Poll |
Результат | void |
public PollService ( IRepository |
||
pollRepository | IRepository |
|
pollAnswerRepository | IRepository |
|
pollVotingRecords | IRepository |
|
cacheManager | ICacheManager | |
eventPublisher | IEventPublisher | |
Результат | System |
public UpdatePoll ( Nop.Core.Domain.Polls.Poll poll ) : void | ||
poll | Nop.Core.Domain.Polls.Poll | Poll |
Результат | void |