public static ForumGirdisi İlkGirdiAl(this ForumSayfası forumSayfası, IForumServisi forumServisi) { if (forumSayfası == null) { throw new ArgumentNullException("forumSayfası"); } var forumGirdileri = forumServisi.TümGirdileriAl(forumSayfası.Id, 0, string.Empty, 0, 1); if (forumGirdileri.Any()) { return(forumGirdileri[0]); } return(null); }
public GenelModelFactory(IKategoriServisi categoryService, ISayfalarServisi topicService, ILanguageService languageService, ILocalizationService localizationService, IWorkContext workContext, ISiteContext storeContext, ITemaContext themeContext, ITemaSağlayıcı themeProvider, IForumServisi forumservice, IGenelÖznitelikServisi genericAttributeService, IWebYardımcısı webHelper, IİzinServisi permissionService, IStatikÖnbellekYönetici cacheManager, ISayfaHeadOluşturucu pageHeadBuilder, IResimServisi pictureService, IHostingEnvironment hostingEnvironment, KatalogAyarları catalogSettings, SiteBilgiAyarları storeInformationSettings, GenelAyarlar commonSettings, BlogAyarları blogSettings, ForumAyarları forumSettings, LocalizationSettings localizationSettings) { this._categoryService = categoryService; this._topicService = topicService; this._languageService = languageService; this._localizationService = localizationService; this._workContext = workContext; this._storeContext = storeContext; this._themeContext = themeContext; this._themeProvider = themeProvider; this._genericAttributeService = genericAttributeService; this._webHelper = webHelper; this._permissionService = permissionService; this._cacheManager = cacheManager; this._pageHeadBuilder = pageHeadBuilder; this._pictureService = pictureService; this._hostingEnvironment = hostingEnvironment; this._catalogSettings = catalogSettings; this._storeInformationSettings = storeInformationSettings; this._commonSettings = commonSettings; this._blogSettings = blogSettings; this._forumSettings = forumSettings; this._localizationSettings = localizationSettings; }