예제 #1
0
        public ActionResult <ExperimentDto> GetExperiment(Guid plantId, Guid experimentId)
        {
            var experimnt = _experimentRepository.GetExperiment(plantId, experimentId);

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

            return(Ok(_mapper.Map <ExperimentDto>(experimnt)));
        }