コード例 #1
0
 public EmployeeController(IEmployeeRepository employeeRepository, IRegistRepository registRepository, IMapper mapper, IPropertyMappingService propertyMappingService)
 {
     this._employeeRepository = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository));
     this._registRepository   = registRepository ?? throw new ArgumentNullException(nameof(registRepository));
     this._mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService  = propertyMappingService;
 }
コード例 #2
0
ファイル: RegistController.cs プロジェクト: sun198986/Station
 public RegistController(IRegistRepository registRepository, IMapper mapper, IPropertyMappingService propertyMappingService)
 {
     _registRepository       = registRepository ?? throw new ArgumentNullException(nameof(registRepository));
     _mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService;
 }