///<summary> ///Author: Sara Nanke ///Gets plant regions ///Date: 4/7/16 ///</summary> public bool?[] GetPlantRegions(Plant plant) { try { return(PlantAccessor.RetrievePlantRegions(plant)); } catch (Exception) { throw; } }
///<summary> ///Author: Stenner Kvindlog ///fetchPlantList gets a list of all the plants //calling to the plant accessor ///Date: 3/4/16 ///</summary> public List <Plant> GetPlantList(Active active) { try { List <Plant> plants = PlantAccessor.RetrievePlantList(active); foreach (Plant plant in plants) { plant.RegionIDs = PlantAccessor.RetrievePlantRegions(plant); } return(plants); //return AddTestPlants(false); } catch (Exception ex) { throw ex; } }