public OrdersController(ITigerRepository repository, ILogger <OrdersController> logger, IMapper mapper, UserManager <StoreUser> userManager) { _repository = repository; _logger = logger; _mapper = mapper; _userManager = userManager; }
//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 }
public TigerService(ITigerRepository repository, ILogService log) { this.repository = repository; this.log = log; }