public ActionResult Sheet(string adjective1, string noun1, string verb1, string adverb1, string adjective2, string noun2, string noun3, string adjective3, string verb2, string adverb2, string verb3, string adjective4)
        {
            MadLibsVariable myMadLibsVariable = new MadLibsVariable();

            myMadLibsVariable.SetAdjective(adjective1);
            myMadLibsVariable.SetAdverb(adverb1);
            myMadLibsVariable.SetNoun(noun1);
            myMadLibsVariable.SetVerb(verb1);
            myMadLibsVariable.SetAdjective(adjective2);
            myMadLibsVariable.SetAdjective(adjective3);
            myMadLibsVariable.SetAdjective(adjective4);
            myMadLibsVariable.SetVerb(verb2);
            myMadLibsVariable.SetVerb(verb3);
            myMadLibsVariable.SetAdverb(adverb2);
            myMadLibsVariable.SetNoun(noun2);
            myMadLibsVariable.SetNoun(noun3);
            return(View(myMadLibsVariable));
        }
Exemplo n.º 2
0
        public ActionResult MadLibsStory()
        {
            MadLibsVariable myMadLibs = new MadLibsVariable();

            myMadLibs.SetPerson1(Request.Query["person1"]);
            myMadLibs.SetPerson2(Request.Query["person2"]);
            myMadLibs.SetAnimal(Request.Query["animal"]);
            myMadLibs.SetExclaimation(Request.Query["exclaimation"]);
            myMadLibs.SetVerb(Request.Query["verb"]);
            myMadLibs.SetNoun(Request.Query["noun"]);
            return(View("MadLibs", myMadLibs));
        }
Exemplo n.º 3
0
        public ActionResult MadLibs(string person1, string person2, string animal, string exclamation, string verb, string noun)
        {
            MadLibsVariable myMadLibsVariable = new MadLibsVariable();

            myMadLibsVariable.SetPerson1(person1);
            myMadLibsVariable.SetPerson2(person2);
            myMadLibsVariable.SetAnimal(animal);
            myMadLibsVariable.SetExclamation(exclamation);
            myMadLibsVariable.SetVerb(verb);
            myMadLibsVariable.SetNoun(noun);

            return(View(myMadLibsVariable));
        }