コード例 #1
0
ファイル: AccidentBiz.cs プロジェクト: Deepakumar/Tiqri.AMS
        //public AccidentCategoryBiz() : this(new AccidentCategoryRepository()) { }

        //public AccidentCategoryBiz(IAccidentCategoryRepository _repository) { this._repository = new AccidentCategoryRepository(); }

        /// <summary>
        ///
        /// </summary>

        public AccidentBiz()
        {
            this._repository = new AccidentRepository();
        }
コード例 #2
0
 public AccidentService(IAccidentRepository accidentRepository)
 {
     this.accidentRepository = accidentRepository;
 }
 public AccidentController(ILogger <AccidentController> logger, IAccidentRepository accidentRepository)
 {
     _logger             = logger;
     _accidentRepository = accidentRepository;
 }
コード例 #4
0
 public AccidentController(IMapper mapper, IAccidentRepository accidentRepository, IDriverRepository driverRepository)
 {
     _mapper             = mapper;
     _accidentRepository = accidentRepository;
     _driverRepository   = driverRepository;
 }