Example #1
0
        private void ButtonModify_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Ingredient        ingredientUpdate      = CheckNulls();
                AdminIngredientBL ingredientValidations = new AdminIngredientBL();

                bool updateresult = ingredientValidations.ModifyIngredient(ingredientUpdate);
                if (updateresult)
                {
                    System.Windows.MessageBox.Show("Ingredient Updated");//
                }
                else
                {
                    System.Windows.MessageBox.Show("Ingredient Not Updated");
                }
            }
            catch (RecipeIngredientSystemExceptions ex)
            {
                System.Windows.MessageBox.Show(ex.Message);
            }
        }