public HomeController() { using (var scope = StaticContainer.Container.BeginLifetimeScope()) { AlbumRepository = scope.Resolve <IAlbumRepository>(); SongRepository = scope.Resolve <ISongRepository>(); StaticContentRepository = scope.Resolve <IStaticContentRepository>(); ArtistRepository = scope.Resolve <IArtistRepository>(); } }
public StaticContentService(IUnitOfWork unitOfWork, IStaticContentRepository staticContentRepository, ICacheManager cacheManager) : base(unitOfWork, staticContentRepository) { _staticContentRepository = staticContentRepository; _cacheManager = cacheManager; }
public StaticContentService(IUnitOfWork unitOfWork, IStaticContentRepository staticContentRepository) : base(unitOfWork, staticContentRepository) { this._unitOfWork = unitOfWork; this._staticContentRepository = staticContentRepository; }
public StaticContentController(IStaticContentRepository staticContentRepository) { _staticContentRepository = staticContentRepository; }