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