Example #1
0
        public ActionResult Story(string noun, string verb, string adjective)
        {
            MadLibsVariables myMadLibsInstance = new MadLibsVariables();

            myMadLibsInstance.Noun      = noun;
            myMadLibsInstance.Verb      = verb;
            myMadLibsInstance.Adjective = adjective;
            return(View(myMadLibsInstance));
        }
Example #2
0
        public ActionResult Story()
        {
            MadLibsVariables newMadLibs = new MadLibsVariables();

            newMadLibs.SetPersonOne(Request.Query["person1"]);
            newMadLibs.SetPersonTwo(Request.Query["person2"]);
            newMadLibs.SetAnimal(Request.Query["animal"]);
            newMadLibs.SetExclamation(Request.Query["exclamation"]);
            newMadLibs.SetVerb(Request.Query["verb"]);
            newMadLibs.SetNoun(Request.Query["noun"]);
            return(View("Story", newMadLibs));
        }
        public ActionResult Libs(string collectiveNoun, string thing, string kitchenUtensil, string name, string shape, string clothingItem, string color, string seaCreature)
        {
            MadLibsVariables myMadLib = new MadLibsVariables();

            myMadLib.CollectiveNoun = collectiveNoun;
            myMadLib.Thing          = thing;
            myMadLib.KitchenUtensil = kitchenUtensil;
            myMadLib.Name           = name;
            myMadLib.Shape          = shape;
            myMadLib.ClothingItem   = clothingItem;
            myMadLib.Color          = color;
            myMadLib.SeaCreature    = seaCreature;
            return(View(myMadLib));
        }