public CalendarController( IDiscordSender discordSender, DutyManager <ApplicationDbContext> dutyManager, UserManager <Student> userManager) { _discordSender = discordSender; _dutyManager = dutyManager; _userManager = userManager; }
public DutyController( //IHostedService hostedService, IDiscordSender discordSender, DutyManager <ApplicationDbContext> dutyManager, PostManager <ApplicationDbContext> postManager, ShareManager <ApplicationDbContext> shareManager, SubjectManager <ApplicationDbContext> subjectManager, UserManager <Student> userManager) { _discordSender = discordSender; _dutyManager = dutyManager; //_mailingCron = hostedService as MailingCron; _postManager = postManager; _shareManager = shareManager; _subjectManager = subjectManager; _userManager = userManager; }