public IActionResult GetAll() { var beehives = _beehiveService.GetBeehives(); if (beehives.Count() > 0) { return(Ok(beehives)); } return(NoContent()); }
public IActionResult GetBeehives(int beeGardenId) { var beehives = _beehiveService.GetBeehives(beeGardenId); if (beehives.Count() > 0) { return(Ok(beehives)); } return(NoContent()); }
public IActionResult Get() { return(Ok(_beehiveService.GetBeehives())); }