示例#1
0
 public NaturalEventsController(IEonetService eonetService)
 {
     _eonetService = eonetService ?? throw new ArgumentNullException();
 }
示例#2
0
 //parameter will be provider by Dependecy Injection
 public EonetController(IEonetService eonetService)
 {
     this._eonetService = eonetService;
 }