Пример #1
0
 /// <summary>
 /// .ctor
 /// </summary>
 public AdminCRUDService(IOurGardenRepository repository,
                         IPhotoSaver photoSaver,
                         IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository         = repository;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
Пример #2
0
 public PhotoEntityUpdater(IOurGardenRepository repository,
                           ILogger <PhotoEntityUpdater> logger,
                           IPhotoSaver photoSaver)
 {
     _repository = repository;
     _logger     = logger;
     _photoSaver = photoSaver;
 }
Пример #3
0
 public PhotosController(IUnitOfWork unitOfWork, IMapper mapper, IPhotoLoader photoLoader, IPhotoSaver photoSaver, IPhotoDeleter photoDeleter)
 {
     _photoLoader  = photoLoader;
     _photoSaver   = photoSaver;
     _photoDeleter = photoDeleter;
     _unitOfWork   = unitOfWork;
     _mapper       = mapper;
 }
Пример #4
0
 public ProductController(IOurGardenRepository repository,
                          ILogger <ProductController> logger,
                          IPhotoSaver photoSaver,
                          IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository = repository;
     _logger     = logger;
     _service    = new ProductControllerService(repository, logger, photoSaver, photoEntityUpdater);
 }
Пример #5
0
 public SubcategoryController(IOurGardenRepository repository,
                              ILogger <SubcategoryController> logger,
                              IPhotoSaver photoSaver,
                              IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository = repository;
     _logger     = logger;
     _service    = new SubcategoryControllerService(_repository, logger, photoSaver, photoEntityUpdater);
 }
Пример #6
0
 public NewsController(IOurGardenRepository repository,
                       ILogger <NewsController> logger,
                       IPhotoSaver photoSaver,
                       IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository = repository;
     _logger     = logger;
     _service    = new NewsControllerService(_repository, _logger, photoSaver, photoEntityUpdater);
 }
Пример #7
0
 public GalleryControllerService(IOurGardenRepository repository,
                                 IPhotoSaver photoSaver,
                                 IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (_repository as OurGardenRepository).Context;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
 public ProductControllerService(IOurGardenRepository repository,
                                 ILogger logger,
                                 IPhotoSaver photoSaver,
                                 IPhotoEntityUpdater photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (repository as OurGardenRepository).Context;
     _logger             = logger;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
 /// <summary>
 /// .ctor
 /// </summary>
 public PageInfoControllerService(ILogger <PageInfoControllerService> logger,
                                  IOurGardenRepository repository,
                                  IPhotoSaver photoSaver,
                                  IPhotoEntityUpdater photoEntityUpdater) : base(repository,
                                                                                 photoSaver,
                                                                                 photoEntityUpdater)
 {
     _repository         = repository;
     _logger             = logger;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }
Пример #10
0
 /// <summary>
 /// .ctor
 /// </summary>
 public CategoryControllerService(ILogger <CategoryControllerService> logger,
                                  IOurGardenRepository repository,
                                  IPhotoSaver photoSaver,
                                  IPhotoEntityUpdater photoEntityUpdater) : base(repository,
                                                                                 photoSaver,
                                                                                 photoEntityUpdater)
 {
     _repository         = repository;
     _context            = (_repository as OurGardenRepository).Context;
     _logger             = logger;
     _photoSaver         = photoSaver;
     _photoEntityUpdater = photoEntityUpdater;
 }