public IActionResult GetById(int beehiveId) { var beehive = _beehiveService.GetBeehive(beehiveId); if (beehive != null) { return(Ok(beehive)); } return(NoContent()); }
public IActionResult Get(int id) { return(Ok(_beehiveService.GetBeehive(id))); }
public IActionResult GetById(int beehiveId) { var beehive = _beehiveService.GetBeehive(beehiveId); if (beehive != null) { return(Ok(beehive)); } return(NoContent()); }
public IActionResult Get(int id) { return(Ok(_beehiveService.GetBeehive(id))); }