public List <IngredientView> GetIngredientInventory()
        {
            if (ingredientListView == null)
            {
                ingredientListView = ReadIngredientsFromJson();
            }

            return(ingredientListView.Ingredients.ToList());
        }
 public IngredientRepositoryFromJsonFile(IConfiguration configuration)
 {
     this.configuration = configuration;
     ingredientListView = ReadIngredientsFromJson();
 }