public void Update()
        {
            Ingredients.Clear();

            using (IIngredientController controller = factory.CreateIngredientController())
            {
                DataControllerMessage <IEnumerable <IngredientDisplayDTO> > controllerMessage = controller.GetAll();

                if (controllerMessage.IsSuccess)
                {
                    foreach (IngredientDisplayDTO ingredient in controllerMessage.Data)
                    {
                        Ingredients.Add(ingredient);
                    }
                }
            }
        }
        public void ChangeIngredient(string ingredientName)
        {
            using (IIngredientController controller = factory.CreateIngredientController())
            {
                DataControllerMessage <IngredientEditDTO> controllerMessage = controller.Get(ingredientName);
                if (controllerMessage.IsSuccess)
                {
                    this.ingredient = controllerMessage.Data;

                    this.Stocks.Clear();
                    foreach (int stockNo in ingredient.StocksAvailable)
                    {
                        this.Stocks.Add(stockNo);
                    }

                    RaisePropertyChangedEvent("Name");
                }
            }
        }