public Plante(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked) { Name = name; Season = season; AmoungWaterNeded = amoungWaterNeded; DatePlanting = datePlanting; Elked = elked; }
public ICollection <int> GetTAIDs(EnumSeason enumSeason) { _touristAttractionIDs = new List <int>(); try { _touristAttractionIDs = _oTourerContext.TAttractionSeasonInfos.Where(t => t.Season == (int)enumSeason).Select(i => i.TouristAttractionID).Take(CommonHelper.GenerateRandomNumber(2, 8)).ToList(); return(_touristAttractionIDs); } catch (Exception) { _touristAttractionIDs = null; return(_touristAttractionIDs); } }
public Tree(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, EnumKindTree kindTree) : base(name, season, amoungWaterNeded, datePlanting, elked) { KindTree = kindTree; }
public GreenHouse(string greenHouseName, int lineNumber, int potNumber, EnumFrequency supervition, string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, ConsoleColor flowerColor) : base(name, season, amoungWaterNeded, datePlanting, elked, flowerColor) { GreenHouseName = greenHouseName; LineNumber = lineNumber; PotNumber = potNumber; Supervition = supervition; }
public ICollection <int> GetTAIDs(EnumSeason enumSeason) { _touristAttractionIDs = new List <int>(); _touristAttractionIDs = _oTAttractionSeasonInfoDA.GetTAIDs(enumSeason); return(_touristAttractionIDs); }
public Flower(string name, EnumSeason season, int amoungWaterNeded, DateTime datePlanting, bool elked, ConsoleColor flowerColor) : base(name, season, amoungWaterNeded, datePlanting, elked) { FlowerColor = flowerColor; }