public PublicationsController(IPublicationRepository publicationRepository, IAuthorsRepository authorRepository, SessionHelper helper, IDataContext dataContext)
     : base(dataContext)
 {
     _publicationRepository = publicationRepository;
     _authorsRepository = authorRepository;
     _sessionHelper = helper;
 }
예제 #2
0
 public BorrowController(IBorrowerRepository borrowerRepository, IMemberRepository memberRepository, IPublicationRepository publicationRepository, IDataContext dataContext)
     : base(dataContext)
 {
     _borrowerRepository = borrowerRepository;
     _memberRepository = memberRepository;
     _publicationRepository = publicationRepository;
 }
 public PublicationManagement(IPublicationRepository publicationRepository)
 {
     this.publicationRepository = publicationRepository;
     this.publicationValidator  = new PublicationValidator();
 }
예제 #4
0
 public PublicationService(IPublicationRepository publicationRepository, IPublicationFileRepository publicationFileRepository)
 {
     _publicationRepository     = publicationRepository;
     _publicationFileRepository = publicationFileRepository;
 }
예제 #5
0
 public PublicationController(IPublicationRepository publicationRepository, IUserRepository userRepository)
 {
     _publicationRepository = publicationRepository;
     _userRepository        = userRepository;
 }
예제 #6
0
 public AdDetailsModel(IPublicationRepository publicationRepository)// в качестве параметра передается интерфейс
 {
     _publicationRepository = publicationRepository;
 }
 public PublicationController(IPublicationRepository publicationRepo)
 {
     _publicationRepo = publicationRepo;
 }
예제 #8
0
 public PublicationController(IPublicationRepository repositoryStub)
 {
     this.repositoryStub  = repositoryStub;
     publicationValidator = new PublicationValidator();
 }
 //конструктор
 public HeadCountViewComponent(IPublicationRepository publicationRepository)
 {
     _publicationRepository = publicationRepository;
 }
예제 #10
0
 public StatusService(InstanceSettings instanceSettings, IStatusExtractor statusExtractor, IExtractionStatisticsHandler statisticsHandler, IPublicationRepository publicationRepository)
 {
     _instanceSettings      = instanceSettings;
     _statusExtractor       = statusExtractor;
     _statisticsHandler     = statisticsHandler;
     _publicationRepository = publicationRepository;
 }
예제 #11
0
 public ControlPanelController(IProvinceRepository provinceRepository, ICountryRepository countryRepository, IDisciplineRepository disciplineRepositiory, IGroupRepository repGroup, IFileRepository repFile, ICategoryRepository repoCat, IUserProfileRepository repoUserProfile, IEntityFileRepository repoEntityFile, ISectionRepository repoSection, IProjectRepository repoProject, IVideoLinkRepository repoVideoLink, IFrontEntityFileRepository repoFrontEntityFile, IFrontContentRepository repoFrontContent, IMessageRepository repoMessage, IPublicationRepository repoPublication)
 {
     _repoCountry         = countryRepository;
     _repoProvince        = provinceRepository;
     _repoDiscipline      = disciplineRepositiory;
     _repoGroup           = repGroup;
     _repoFile            = repFile;
     _repoCat             = repoCat;
     _repoUserProfile     = repoUserProfile;
     _repoEntityFile      = repoEntityFile;
     _repoSection         = repoSection;
     _repoProject         = repoProject;
     _repoVideoLink       = repoVideoLink;
     _repoFrontEntityFile = repoFrontEntityFile;
     _repoFrontContent    = repoFrontContent;
     _repoMessage         = repoMessage;
     _repoPublication     = repoPublication;
 }
 public UserReleaseRoleService(ContentDbContext contentDbContext,
                               IPublicationRepository publicationRepository)
 {
     _contentDbContext      = contentDbContext;
     _publicationRepository = publicationRepository;
 }
예제 #13
0
 public PublicationService(IPublicationRepository repository, List <string> urlList)
 {
     this.database  = repository;
     this.UrlList   = urlList;
     SourceInfoList = new Dictionary <string, SourceInfo>();
 }
예제 #14
0
 public AdDetailsModel(IPublicationRepository publicationRepository)
 {
     _publicationRepository = publicationRepository;
 }
예제 #15
0
 public AdDeleteModel(IPublicationRepository publicationRepository, IWebHostEnvironment webHostEnvironment)
 {
     _publicationRepository = publicationRepository;
     _webHostEnvironment    = webHostEnvironment;
 }
예제 #16
0
 public PublicationService(IPublicationRepository publicationRepository, IUnitOfWork unitOfWork)
 {
     _publicationRepository = publicationRepository;
     _unitOfWork            = unitOfWork;
 }
예제 #17
0
 public AdPublicationsModel(IPublicationRepository db)
 {
     _db = db;
 }
예제 #18
0
 public EditModel(IPublicationRepository publicationRepository, IWebHostEnvironment webHostEnvironment) // 2-й параметр IWebHostEnvironment для получение пути к www.root
 {
     _publicationRepository = publicationRepository;                                                    //зависимость бд
     _webHostEnvironment    = webHostEnvironment;
 }
 public PublicationsController()
 {
     publicationRepository = new PublicationRepository(new ApiContext());
     userRepository        = new UserRepository(new ApiContext());
     topicRepository       = new TopicRepository(new ApiContext());
 }
예제 #20
0
 public SessionHelper(IAuthorsRepository authors, IPublicationRepository publications)
 {
     _authors = authors;
     _publications = publications;
 }
예제 #21
0
 public PublicationService(IMemoryCache cache, ILogger logger, IPublicationRepository repository)
 {
     _cache      = cache;
     _logger     = logger;
     _repository = repository;
 }
예제 #22
0
 public PublicationService(IPublicationRepository publicationRepo, IBorrowRepository borrowRepo)
 {
     _publicationRepo = publicationRepo;
     _borrowRepo      = borrowRepo;
 }
예제 #23
0
 public GroupController(IEntityFileRepository entityFileRepository, IFrontEntityFileRepository frontEntityFileRepository, IVideoLinkRepository videoLinkRepository, IUserProfileRepository userProfileRepository, IProvinceRepository provinceRepository, ICountryRepository countryRepository, IDisciplineRepository disciplineRepositiory, IFileRepository repFile, IGroupRepository groupRepository, IProjectRepository projectRepository, IPublicationRepository publicationRepository, IFavouriteRepository favouriteRepository)
 {
     _repoCountry         = countryRepository;
     _repoProvince        = provinceRepository;
     _repoDiscipline      = disciplineRepositiory;
     _repoUserProfile     = userProfileRepository;
     _repoVideoLink       = videoLinkRepository;
     _repoFrontEntityFile = frontEntityFileRepository;
     _repoEntityFile      = entityFileRepository;
     _repoGroup           = groupRepository;
     _repoProject         = projectRepository;
     _repoPublication     = publicationRepository;
     _repoFavourite       = favouriteRepository;
 }
 private readonly IPublicationRepository _db;        //приватное поле доступа к базе данных
 public PublicationsModel(IPublicationRepository db) //передача интерфейса из Services, зависимость базы данных
 {
     _db = db;                                       //инициализация, из констрктора передаются парметры в переменную
 }
예제 #25
0
 public PublicationsViewComponent(IPublicationRepository publicationRepository, IConfiguration configuration)
 {
     _publicationRepository = publicationRepository;
     _configuration         = configuration;
 }