PageRenderTime 64ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/Handlers/VoteWidgetPartHandler.cs

#
C# | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | 750858d5cbb9e47b7b566bcd04b791f6 MD5 | raw file
  1. using Contrib.Voting.Models;
  2. using Orchard.ContentManagement.Handlers;
  3. using Orchard.Data;
  4. namespace Contrib.Voting.Handlers {
  5. public class VoteWidgetPartHandler : ContentHandler {
  6. public VoteWidgetPartHandler(IRepository<VoteWidgetPartRecord> repository) {
  7. Filters.Add(StorageFilter.For(repository));
  8. }
  9. }
  10. }