public BirdDetails(IBirdService birdService, Archaeomania mainForm, IUnitOfMeasurementService unitOfMeasurementService)
 {
     _birdService = birdService;
     _mainForm    = mainForm;
     _unitOfMeasurementService = unitOfMeasurementService;
     if (Bird == null)
     {
         Bird = new Bird();
     }
     InitializeComponent();
 }
Exemple #2
0
 public BirdsController(IBirdService service)
 {
     _birdSvc = service;
 }
 public BirdController(IBirdService birdService, IEventService eventService, ICountLogService countLogService)
 {
     this._birdService     = birdService;
     this._eventService    = eventService;
     this._countLogService = countLogService;
 }
Exemple #4
0
 public async Task <BirdResource> Get(Guid birdId, [FromServices] IBirdService service)
 {
     _logger.LogInformation("Getting bird", new { birdId });
     return(await service.GetBirdAsync(birdId));
 }
Exemple #5
0
 public async Task <IEnumerable <BirdResource> > Get([FromServices] IBirdService service)
 {
     _logger.LogInformation("Getting all birds");
     return(await service.GetBirdsAsync());
 }