public OptionsController(IOptionsSnapshot <AboutUsPageInfo> aboutUsPageInfo, IWritableOptions <AboutUsPageInfo> aboutUsPageInfoWriter, IToastNotification toastNotification, IOptionsSnapshot <WebsiteInfo> websiteInfo, IWritableOptions <WebsiteInfo> websiteInfoWriter, IOptionsSnapshot <SmtpSettings> smtpSettings, IWritableOptions <SmtpSettings> smtpSettingsWriter, IOptionsSnapshot <PostRightSideBarWidgetOptions> postRightSideBarWidgetOptions, IWritableOptions <PostRightSideBarWidgetOptions> postRightSideBarWidWritableOptionsWriter, ICategoryService categoryService, IMapper mapper) { _aboutUsPageInfoWriter = aboutUsPageInfoWriter; _toastNotification = toastNotification; _websiteInfoWriter = websiteInfoWriter; _smtpSettingsWriter = smtpSettingsWriter; _postRightSideBarWidWritableOptionsWriter = postRightSideBarWidWritableOptionsWriter; _categoryService = categoryService; _mapper = mapper; _postRightSideBarWidgetOptions = postRightSideBarWidgetOptions.Value; _smtpSettings = smtpSettings.Value; _websiteInfo = websiteInfo.Value; _aboutUsPageInfo = aboutUsPageInfo.Value; }
public PostController(IPostService postService, IOptionsSnapshot <PostRightSideBarWidgetOptions> postRightSideBarWidgetOptions) { _postService = postService; _postRightSideBarWidgetOptions = postRightSideBarWidgetOptions.Value; }