public OptionsController(IOptionsSnapshot <AboutUsPageInfo> aboutUsPageInfo, IWritableOptions <AboutUsPageInfo> aboutUsPageInfoWriter, IToastNotification toastNotification, IOptionsSnapshot <WebsiteInfo> websiteInfo, IWritableOptions <WebsiteInfo> websiteInfoWriter, IOptionsSnapshot <SmtpSettings> smtpSettings, IWritableOptions <SmtpSettings> smtpSettingsWriter, IOptionsSnapshot <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptions, IWritableOptions <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptionsWriter, ICategoryService categoryService, IMapper mapper) { _aboutUsPageInfoWriter = aboutUsPageInfoWriter; _toastNotification = toastNotification; _aboutUsPageInfo = aboutUsPageInfo.Value; _websiteInfoWriter = websiteInfoWriter; _smtpSettingsWriter = smtpSettingsWriter; _smtpSettings = smtpSettings.Value; _websiteInfo = websiteInfo.Value; _articleRightSideBarWidgetOptions = articleRightSideBarWidgetOptions.Value; _articleRightSideBarWidgetOptionsWriter = articleRightSideBarWidgetOptionsWriter; _categoryService = categoryService; _mapper = mapper; }
public ArticleController(IArticleService articleService, IOptionsSnapshot <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptions) { _articleService = articleService; _articleRightSideBarWidgetOptions = articleRightSideBarWidgetOptions.Value; }