Example #1
0
 public OrderItemsController(
     IArtRepository repository,
     ILogger <OrderItemsController> logger,
     IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
Example #2
0
 public ProfileController(ImageDbContext context, IWebHostEnvironment hostEnvironment, IImageRepository imageRepository, IMemberRepository memberRepository, IArtRepository artRepository, IRelationshipRepository relationshipRepository, UserManager <ApplicationUser> userManager)
 {
     _context               = context;
     _hostEnvironment       = hostEnvironment;
     ImageRepository        = imageRepository;
     MemberRepository       = memberRepository;
     ArtRepository          = artRepository;
     RelationshipRepository = relationshipRepository;
     _userManager           = userManager;
 }
 public OrdersController(
     IArtRepository repository,
     ILogger <OrdersController> logger,
     IMapper mapper,
     UserManager <StoreUser> userManager)
 {
     _repository  = repository;
     _logger      = logger;
     _mapper      = mapper;
     _userManager = userManager;
 }
Example #4
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext                = factory.CreateDbContext(null);
            _albumRepository           = new AlbumRepository(_appContext);
            _artRepository             = new ArtRepository(_appContext);
            _artistDataRepository      = new ArtistDataRepository(_appContext);
            _commonUserDataRepository  = new CommonUserDataRepository(_appContext);
            _countryRepository         = new CountryRepository(_appContext);
            _distributorDataRepository = new DistributorDataRepository(_appContext);
            _genreRepository           = new GenreRepository(_appContext);
            _playlistRepository        = new PlaylistRepository(_appContext);
            _trackRepository           = new TrackRepository(_appContext);
            _userRepository            = new UserRepository(_appContext);
            _userLibraryRepository     = new UserLibraryRepository(_appContext);
        }
Example #5
0
 public CommunityController(IMemberRepository memberRepository, IImageRepository imageRepository, IArtRepository artRepository, IRelationshipRepository relationshipRepository, UserManager <ApplicationUser> userManager)
 {
     MemberRepository       = memberRepository;
     ImageRepository        = imageRepository;
     ArtRepository          = artRepository;
     RelationshipRepository = relationshipRepository;
     _userManager           = userManager;
 }
Example #6
0
 public ArtService(IArtRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
 public ArtworkDetailController(IArtRepository artRepository, IMemberRepository memberRepository)
 {
     ArtRepository    = artRepository;
     MemberRepository = memberRepository;
 }
 public ArtController(IArtRepository artRepository)
 {
     _repository = artRepository;
 }
 public HomeController(ILogger <HomeController> logger, IArtRepository artRepository, IMemberRepository memberRepository)
 {
     _logger          = logger;
     ArtRepository    = artRepository;
     MemberRepository = memberRepository;
 }
Example #10
0
 public ArtController(IArtRepository artRepository)
 {
     this.artRepository = artRepository;
 }
 public AppController(INullMailService mailService, IArtRepository repository)
 {
     _mailService = mailService;
     _repository  = repository;
 }
 public ShoppingCartController(IArtRepository artRepository, ShoppingCart shoppingCart)
 {
     _artRepository = artRepository;
     _shoppingCart  = shoppingCart;
 }
 public ArtService(IArtRepository artRepository)
 {
     _artRepository = artRepository;
 }
 public ProfileArtController(IArtRepository artRepository, IFileService fileService)
 {
     this.artRepository = artRepository;
     this.fileService   = fileService;
 }
 public ProductsController(IArtRepository repository, ILogger <ProductsController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
Example #16
0
 public HomeController(IArtRepository artRepository)
 {
     _artRepository = artRepository;
 }
Example #17
0
 public ArtService(IArtRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
 public CategoriesService(ICategoryRepository categoryRepository
                          , IArtRepository artsRepository)
 {
     this.categoryRepository = categoryRepository;
     this.artsRepository     = artsRepository;
 }
Example #19
0
 public ShowroomController(IArtRepository artRepository, IMemberRepository memberRepository)
 {
     this.memberRepository = memberRepository;
     this.artRepository    = artRepository;
 }
 public PaintingsController(IArtRepository artRepository)
 {
     _artRepository = artRepository;
     _artCollection = _artRepository.Read();
 }
Example #21
0
 public AppController(IArtRepository repository, IMailService mailService)
 {
     _repository  = repository;
     _mailService = mailService;
 }
Example #22
0
 public ArtController(IArtRepository artRepository, ICategoryRepository categoryRepository)
 {
     _artRepository      = artRepository;
     _categoryRepository = categoryRepository;
 }