예제 #1
0
 public IProducerRepo GetProducerRepo()
 {
     if (_producerRepo == null)
     {
         _producerRepo = new ProducerRepo(_dXContext);
     }
     return(_producerRepo);
 }
예제 #2
0
 public ProducerController(IProducerRepo repository, IMapper mapper, IFileStorage fileStorage)
 {
     this.repository  = repository;
     this.mapper      = mapper;
     this.fileStorage = fileStorage;
 }
예제 #3
0
 public ProducerService(IUnitOfWork unitOfWork)
 {
     _movieRepo  = unitOfWork.GetProducerRepo();
     _unitOfWork = unitOfWork;
 }