private void StoreIngredient(object ingredient) { string json = System.Text.Json.JsonSerializer.Serialize(ingredient); File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathIngredient); File_Manager.WriteDataToFile(json, App_Constands.FilePathIngredient); }
private void StorePizza(object pizza) { string json = System.Text.Json.JsonSerializer.Serialize(pizza); File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathPizza); File_Manager.WriteDataToFile(json, App_Constands.FilePathPizza); }
private void StoreOrder(Order Order) { string json = System.Text.Json.JsonSerializer.Serialize(Order); File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathOrder); File_Manager.WriteDataToFile(json, App_Constands.FilePathOrder); }
private void LoadAllIngredients() { File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathIngredient); AllIngredientsJson = File_Manager.LoadAllFiles(App_Constands.FilePathIngredient); }
private void LoadAllPizzas() { File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathPizza); AllPizzasJson = File_Manager.LoadAllFiles(App_Constands.FilePathPizza); }
private void LoadAllOrders() { File_Manager.CreateFolder(App_Constands.FolderPath); File_Manager.CreateFile(App_Constands.FilePathOrder); AllOrdersJson = File_Manager.LoadAllFiles(App_Constands.FilePathOrder); }