Beispiel #1
0
        /// <summary author="Jared Greenfield" created="2019/01/30">
        /// Retrieves all the Items involved in a recipe.
        /// </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 List <Item> RetrieveLineItemsByRecipeID(int recipeID)
        {
            List <Item> items = null;

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

            return(items);
        }