/// <summary>
        ///
        /// Created By: Trent Cullinan 04/28/16
        /// </summary>
        /// <param name="gardenId"></param>
        /// <returns></returns>
        public static IEnumerable <GardenNeed> RetrieveGardenNeeds(int gardenId)
        {
            IEnumerable <GardenNeed> needs = null;

            try
            {
                needs = GardenNeedsAccessor.RetrieveActiveGardenNeeds(gardenId);
            }
            catch (Exception) { }

            return(needs);
        }
示例#2
0
        /// <summary>
        ///
        /// Created By: Trent Cullinan 04/28/16
        /// </summary>
        /// <param name="needID"></param>
        /// <returns></returns>
        public static GardenNeed RetrieveNeed(int needID)
        {
            GardenNeed need = null;

            try
            {
                need = GardenNeedsAccessor.RetrieveGardenNeed(needID);
            }
            catch (Exception) { }

            return(need);
        }