public TemplateService(IGeneralCache <Template> cache, ITemplateRepository templates, ICategoryRepository categories) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _templates = templates ?? throw new ArgumentNullException(nameof(templates)); _categories = categories ?? throw new ArgumentNullException(nameof(categories)); }
public RenderingService(IGeneralCache <Template> cache, ICache <PartialCacheItem> partials, ITemplateRepository templateRepository) { _cache = cache; _templateRepository = templateRepository; _partials = partials; }