Пример #1
0
 public WeatherForecastController(IToolRepository toolRepository, ICheckoutRecordRepository checkoutRecordRepository, ILogger <WeatherForecastController> logger)
 {
     _logger                   = logger;
     _toolRepository           = toolRepository;
     _checkoutRecordRepository = checkoutRecordRepository;
     //don't forget to add this interface to dependency injection in startup
 }
 public CheckoutRecordServices(ICheckoutRecordRepository checkoutRecordRepo, IToolServices toolservices)
 {
     _checkoutRecordRepository = checkoutRecordRepo;
     _toolServices             = toolservices;
 }