public List <Recipe> GetRecipes()
        {
            AdminRecipeDAL recipeDAL = new AdminRecipeDAL();
            List <Recipe>  recipes   = recipeDAL.GetRecipe();

            return(recipes);
        }
        public bool DeleteRecipeBL(int deleteRecipeId)
        {
            bool RecipeDeleted = false;

            try
            {
                if (deleteRecipeId > 0)
                {
                    AdminRecipeDAL recipeDAL = new AdminRecipeDAL();
                    RecipeDeleted = recipeDAL.DeleteRecipeDAL(deleteRecipeId);
                }
                else
                {
                    throw new RecipeIngredientSystemExceptions("Invalid Recipe ID");
                }
            }
            catch (RecipeIngredientSystemExceptions)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(RecipeDeleted);
        }
        public Recipe SearchRecipeBL(int searchRecipeId)
        {
            Recipe searchRecipe = null;

            try
            {
                Recipe recipe = new Recipe();

                AdminRecipeDAL recipeDAL = new AdminRecipeDAL();
                searchRecipe = recipeDAL.SearchRecipeDAL(searchRecipeId);
            }
            catch (RecipeIngredientSystemExceptions ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(searchRecipe);
        }
        public bool UpdateRecipeBL(Recipe recipeupdate)
        {
            bool RecipeUpdated = false;

            try
            {
                if (ValidateRecipe(recipeupdate))
                {
                    AdminRecipeDAL recipeDAL = new AdminRecipeDAL();
                    RecipeUpdated = recipeDAL.UpdateRecipeDAL(recipeupdate);
                }
            }
            catch (RecipeIngredientSystemExceptions)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(RecipeUpdated);
        }
        public bool AddRecipeBL(Recipe recipeadd)
        {
            bool recipeAdded = false;

            try
            {
                if (ValidateAddRecipe(recipeadd))
                {
                    AdminRecipeDAL recipeDAL = new AdminRecipeDAL();
                    recipeAdded = recipeDAL.AddRecipeDAL(recipeadd);
                }
            }
            catch (RecipeIngredientSystemExceptions)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(recipeAdded);
        }