// methods
 /// <summary>
 /// save pizza to the file
 /// </summary>
 /// <param name="pizza"> pizza object </param>
 /// <param name="quantity"> quantity of the pizza</param>
 /// <param name="isFilled"> is the pizza filled </param>
 /// <param name="isThick"> is the pizza thick</param>
 /// <returns></returns>
 public int AddToFile(Pizza pizza, int quantity, bool isFilled, bool isThick)
 {
     using (StreamWriter sw = File.AppendText(filename))
     {
         sw.WriteLine(string.Join(", ", OrderedPizza.PizzaOrderToCSV(pizza, quantity, isFilled, IsThick)));
         sw.Close();
     }
     return(1);
 }
        /// <summary>
        /// Convert the order pizzas to cSV
        /// </summary>
        /// <returns> csv string</returns>
        private string PizzasToCSV()
        {
            string result = "PIZZAS";

            result += Environment.NewLine;
            foreach (OrderedPizza p in pizzas)
            {
                result += OrderedPizza.PizzaOrderToCSV(p.Pizza, p.Quantity, p.IsFilled, p.IsThick);
                result += Environment.NewLine;
            }
            return(result);
        }