Exemplo n.º 1
0
 public UnitOfWork()
 {
     _db         = new ApplicationDbContext();
     _logos      = new LogoRepository(_db);
     _categories = new CategoryRepository(_db);
     _tags       = new TagRepository(_db);
 }
Exemplo n.º 2
0
 public LogosController(IHostingEnvironment host,
                        IMakeRepository makeRepository,
                        IUnitOfWork unitOfWork,
                        IMapper mapper,
                        IOptionsSnapshot <PhotoSettings> options,
                        ILogoRepository logoRepository)
 {
     this.photoSettings  = options.Value;
     this.unitOfWork     = unitOfWork;
     this.makeRepository = makeRepository;
     this.host           = host;
     this.mapper         = mapper;
     this.logoRepository = logoRepository;
 }
Exemplo n.º 3
0
 public PhotosController(IHostingEnvironment host,
                         IVehicleRepository repository,
                         IUnitOfWork unitOfWork,
                         IMapper mapper,
                         IOptionsSnapshot <PhotoSettings> options,
                         IPhotoRepository photoRepository,
                         ILogoRepository logoRepository,
                         IPhotoService photoService)
 {
     _photoSettings   = options.Value;
     _unitOfWork      = unitOfWork;
     _repository      = repository;
     _host            = host;
     _mapper          = mapper;
     _photoRepository = photoRepository;
     _logoRepository  = logoRepository;
     _photoService    = photoService;
 }
Exemplo n.º 4
0
 public LogoService(ILogoRepository logoRepository)
 {
     _logoRepository = logoRepository;
 }
Exemplo n.º 5
0
 public LogoController(ILogoRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 6
0
 public LogoService(ILogoRepository logo, ISnowFlak snowFlak)
 {
     this._Logo     = logo;
     this._SnowFlak = snowFlak;
 }