//public CaliberController() //{ // _caliberRepository = new CaliberRepository(new InventoryContext()); //} public CaliberController(ICaliberRepository caliberRepository) => _caliberRepository = caliberRepository;
public CaliberService() { this.repository = new CaliberRepository(); this.caliberCalibersRepository = new CaliberCalibersRepository(); }
public CaliberService(ICaliberRepository iRepository, ICaliberCalibersRepository icaliberCalibersRepository) { this.repository = iRepository; this.caliberCalibersRepository = icaliberCalibersRepository; }
public NavController(ICaliberRepository repo) { repository = repo; }