Esempio n. 1
0
        /// <summary author="Jared Greenfield" created="2019/02/07">
        /// Retrieves all the Item associated with a recipeID.
        /// </summary>
        /// <param name="recipeID">An Offering object to be added to the database.</param>
        /// <exception cref="SQLException">Insert Fails (example of exception tag)</exception>
        /// <returns>List of Items in a Recipe</returns>
        public Item RetrieveItemByRecipeID(int recipeID)
        {
            Item item = null;

            try
            {
                item = _itemAccessor.SelectItemByRecipeID(recipeID);
            }
            catch (Exception ex)
            {
                ExceptionLogManager.getInstance().LogException(ex);
                throw ex;
            }

            return(item);
        }