コード例 #1
0
 public ArticleService(IUnitOfWork unitOfWork, IArticleRepository repository,
                       IArticleLikeRepository articleLikeRepository, ISavedArticlesRepository savedArtRepo) : base(unitOfWork, repository)
 {
     _repository      = repository;
     _unitOfWork      = unitOfWork;
     _articleLikeRepo = articleLikeRepository;
     _savedArtRepo    = savedArtRepo;
 }
コード例 #2
0
ファイル: ArticleService.cs プロジェクト: aaandrianaaa/blog
 public ArticleService(IArticleRepository articleRepository, IUserRepository userRepository, ICategoryRepository categoryRepository, ISavedArticlesRepository savedArticlesRepository, ICommentRepository commentRepository, IImageRepository imageRepository)
 {
     _articleRepository       = articleRepository;
     _userRepository          = userRepository;
     _categoryRepository      = categoryRepository;
     _savedArticlesRepository = savedArticlesRepository;
     _commentRepository       = commentRepository;
     _imageRepository         = imageRepository;
 }
コード例 #3
0
 public SavedArticleService(IUnitOfWork unitOfWork, ISavedArticlesRepository repository) : base(unitOfWork, repository)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
 }