//public AccidentCategoryBiz() : this(new AccidentCategoryRepository()) { } //public AccidentCategoryBiz(IAccidentCategoryRepository _repository) { this._repository = new AccidentCategoryRepository(); } /// <summary> /// /// </summary> public AccidentBiz() { this._repository = new AccidentRepository(); }
public AccidentService(IAccidentRepository accidentRepository) { this.accidentRepository = accidentRepository; }
public AccidentController(ILogger <AccidentController> logger, IAccidentRepository accidentRepository) { _logger = logger; _accidentRepository = accidentRepository; }
public AccidentController(IMapper mapper, IAccidentRepository accidentRepository, IDriverRepository driverRepository) { _mapper = mapper; _accidentRepository = accidentRepository; _driverRepository = driverRepository; }