Example #1
0
        public void AddPlant(Plant plant, Models.Model.Condition condition, Soil soil, Fertilizer fertilizer)
        {
            int conditionId = conditionRepository.AddCondition(condition, soil.SoilId);

            fertilizerRepository.AddFertilizerCondition(fertilizer.FertilizerId, conditionId, fertilizer.Count);
            plantRepository.AddPlant(plant, 2);
        }