Esempio n. 1
0
        //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;
 }
Esempio n. 4
0
 public AccidentController(IMapper mapper, IAccidentRepository accidentRepository, IDriverRepository driverRepository)
 {
     _mapper             = mapper;
     _accidentRepository = accidentRepository;
     _driverRepository   = driverRepository;
 }