Beispiel #1
0
        public ActionResult <PlantDto> GetPlant(Guid plantId)
        {
            //if (!_experimentRepository.PlantExists(plantId)) {
            //    return NotFound();
            //}
            var plant = _experimentRepository.GetPlant(plantId);

            if (plant == null)
            {
                return(NotFound());
            }

            var plantDto = _mapper.Map <PlantDto>(plant);

            return(Ok(plant));
        }