private void LoadAssignedIngredients()
        {
            var assignedIngredients = _formulationIngredientRepository.GetByFormulationId(_formulationBusinessModel.Id);

            AssignedIngredientBusinessModels.Clear();

            foreach (var ingredient in assignedIngredients)
            {
                var ingredientModel = _ingredientRepository.GetById(ingredient.IngredientId);
                AssignedIngredientBusinessModels.Add(new FormulationIngredientBusinessModel(ingredient, ingredientModel));
            }
        }
        private void OnAddSelectedIngredient()
        {
            _formulationIngredientRepository.Add(FormulationIngredientBusinessModel.Model);

            AssignedIngredientBusinessModels.Add(FormulationIngredientBusinessModel);

            UpdateAvailableIngredients();

            CalculateTotalFormulationPrice();

            FormulationIngredientBusinessModel = null;

            SelectedIngredient = null;
        }