public string Choice(string type, string starterStars, string mainStars, string dessertStars)   //Methode om keuze weer te geven.
        {
            string choice = "";

            if (type == "SMD")
            {
                choice = GetFoodData.GetStarterMainDessert(starterStars, mainStars, dessertStars);      //Als type = SMD (starter + main + dessert).
            }

            return(choice);
        }
Exemple #2
0
        public string Choice(string type, string starterStars, string mainStars, string dessertStars)   //Methode om keuze weer te geven.
        {
            string choice = "";

            if (type == "S")
            {
                choice = GetFoodData.GetStarter(starterStars);                                          //Als type = S (starter).
            }
            else if (type == "M")
            {
                choice = GetFoodData.GetMain(mainStars);                                                //Als type = M (main).
            }
            else if (type == "D")
            {
                choice = GetFoodData.GetDessert(dessertStars);                                          //Als type = D (dessert).
            }

            return(choice);
        }