Exemple #1
0
        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());
        }
Exemple #3
0
 public IActionResult Get()
 {
     return(Ok(_beehiveService.GetBeehives()));
 }