Example #1
0
        public Ingredient SearchIngredient(int IngredientId)
        {
            Ingredient searchIngredient = null;

            try
            {
                IngredientDAL ingredientDAL = new IngredientDAL();
                searchIngredient = ingredientDAL.SearchIngredient(IngredientId);
            }

            catch (RecipeIngredientSystemExceptions)
            {
                MessageBox.Show("Enter valid IngredientId to search an ingredient.");
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(searchIngredient);
        }