Example #1
0
 public PostsModel(ILogger <AdminModel> logger, IAuthService authService, ITextMapService textMapServic, IBlogService blogService,
                   IMemoryCache cache)
     : base(logger, authService, textMapServic)
 {
     _blogService = blogService;
     _cache       = cache;
 }
Example #2
0
 public ContactModel(ILogger <ContactModel> logger, IAuthService authService, ITextMapService textMapService,
                     ISettings settings, ISmtpService smtpService)
     : base(logger, authService, textMapService)
 {
     _settings    = settings;
     _smtpService = smtpService;
 }
Example #3
0
 public AdminModel(ILogger <AdminModel> logger, IAuthService authService, ITextMapService textMapService,
                   IBlogService blogService, ISerializationService serializationService)
     : base(logger, authService, textMapService)
 {
     _blogService          = blogService;
     _serializationService = serializationService;
 }
Example #4
0
        public static ICollection <PostInfoEntry> SetFrontEndTexts(this ITextMapService t, ICollection <PostInfoEntry> entries, string context, string textClickToReadFullArticle, string textReadFullArticle, string textOpenArticleInNewWindow)
        {
            if (entries != null)
            {
                foreach (var entry in entries)
                {
                    entry.TextClickToReadFullArticle = t.GetMap(textClickToReadFullArticle, context);
                    entry.TextOpenArticleInNewWindow = t.GetMap(textOpenArticleInNewWindow, context);
                    entry.TextReadFullArticle        = t.GetMap(textOpenArticleInNewWindow, context);
                }
            }

            return(entries);
        }
Example #5
0
 public ProductsModel(ILogger <ProductsModel> logger, IAuthService authService, ITextMapService textMapService,
                      ISettings settings)
     : base(logger, authService, textMapService)
 {
     _settings = settings;
 }
Example #6
0
 public AlbumsModel(ILogger <AlbumsModel> logger, IAlbumService albumService,
                    IAuthService authService, ITextMapService textMapService)
     : base(logger, authService, textMapService)
 {
     _albumService = albumService;
 }
Example #7
0
 public LoginModel(ILogger <LoginModel> logger, IAuthService authService, ITextMapService textMapService)
     : base(logger, authService, textMapService)
 {
 }
Example #8
0
 public IndexModel(ILogger <IndexModel> logger, IAuthService authService, ITextMapService textMapService,
                   IBlogService blogService)
     : base(logger, authService, textMapService)
 {
     _blogService = blogService;
 }
Example #9
0
 public SiteInfoService(ITextMapService textMapService, ISettings settings)
 {
     _textMapService = textMapService;
     _settings       = settings;
 }
Example #10
0
 public GalleryPageModelBase(ILogger <T> logger, IAuthService authService,
                             ITextMapService textMapServic)
     : base(authService, textMapServic)
 {
     Logger = logger;
 }
Example #11
0
 public SiteInfoService(ISettings settings, ITextMapService textMapService)
 {
     _settings       = settings;
     _textMapService = textMapService;
 }
Example #12
0
 public ContactModel(ILogger <ContactModel> logger, IAuthService authService, ITextMapService textMapServic)
     : base(logger, authService, textMapServic)
 {
 }