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