/// <summary> /// Rhett Allen /// Created Date: 4/7/16 /// Gets a list of all the nutrients for a single plant /// </summary> /// <param name="plantID">The plant ID of the plant to get the nutrients from</param> /// <returns>List of all the nutrients for a single plant</returns> public List <Nutrient> GetPlantNutrients(int?plantID) { List <Nutrient> nutrients = new List <Nutrient>(); try { nutrients = NutrientAccessor.RetrievePlantNutrients(plantID); if (nutrients.Count == 0) { throw new ApplicationException("Nutrients have not yet been added to this plant"); } } catch (Exception ex) { throw new ApplicationException("Nutrients could not be found"); } return(nutrients); }