Beispiel #1
0
 /// <summary>
 /// .ctor
 /// </summary>
 public SiteMapBuilder(IOptions <RootOptions> rootOptions,
                       IOurGardenRepository context)
 {
     _rootOptions     = rootOptions.Value;
     _context         = (context as OurGardenRepository).Context;
     _publicDirectory = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot");
 }
Beispiel #2
0
 public OrderControllerService(IOurGardenRepository repository,
                               IEmailService emailService,
                               ILogger <OrderControllerService> logger)
 {
     _repository   = repository;
     _context      = (repository as OurGardenRepository).Context;
     _emailService = emailService;
     _logger       = logger;
 }
Beispiel #3
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;
 }
Beispiel #5
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;
 }
 public OurGardenRepository(OurGardenContext context)
 {
     Context = context;
 }