Exemple #1
0
 public OrdersController(ITigerRepository repository, ILogger <OrdersController> logger, IMapper mapper, UserManager <StoreUser> userManager)
 {
     _repository  = repository;
     _logger      = logger;
     _mapper      = mapper;
     _userManager = userManager;
 }
Exemple #2
0
        //private readonly IMailService _mailService;

        public HomeController(ILogger <HomeController> logger, ITigerRepository repository) /*IMailService mailService*/
        {
            _logger     = logger;
            _repository = repository;
            //_mailService = mailService;
        }
 //[Route("/api/orders/{orderid}/items")]
 public OrderItemsController(ITigerRepository repository, ILogger <OrderItemsController> logger, IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
 public ProductsController(ITigerRepository repository, ILogger <ProductsController> logger)
 {
     _repository = repository; //repository to call and deal with data
     _logger     = logger;     //log any exceptions
 }
Exemple #5
0
 public TigerService(ITigerRepository repository, ILogService log)
 {
     this.repository = repository;
     this.log        = log;
 }