Ejemplo n.º 1
0
 public RssController(ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IContentManager contentManager, IRepository<PostRecord> postRepo)
 {
     this.contentManager = contentManager;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.postRepo = postRepo;
 }
Ejemplo n.º 2
0
 public CourseMenuController(IContentManager contentManager, IShapeFactory shapeFactory, IRepository<MailSubscriptionRecord> subscriptionRepo, IRepository<PostRecord> postRepo, ICourseService courseService, IYearService yearService, ICourseMenuService menuService, IAuthenticationService authenticationService)
 {
     this.Shape = shapeFactory;
     this.contentManager = contentManager;
     this.subscriptionRepo = subscriptionRepo;
     this.postRepo = postRepo;
     this.yearService = yearService;
     this.courseService = courseService;
     this.menuService = menuService;
     this.authenticationService = authenticationService;
     T = NullLocalizer.Instance;
 }
Ejemplo n.º 3
0
 public PostHandler(ICourseMenuService menuService, IYearService yearService, ICourseService courseService, IRepository<MailSubscriptionRecord> mailRepo, IMembershipService membershipService, IMessageManager messageManager, IRepository<PostRecord> postRepo, IHttpContextAccessor httpContextAccessor)
 {
     this.courseService = courseService;
     this.yearService = yearService;
     this.menuService = menuService;
     this.httpContextAccessor = httpContextAccessor;
     this.postRepo = postRepo;
     this.mailRepo = mailRepo;
     this.messageManager = messageManager;
     this.membershipService = membershipService;
     OnPublished<RoutePart>((context, part) =>
     {
         var item = postRepo.Fetch(x => x.ContentId == part.ContentItem.Id).FirstOrDefault();
         if (item != null)
         {
             var menu = menuService.Get(item.Menu.Id);
             sendEmail(menu.Id, part.ContentItem);
         }
         
     });
 }