public ActionResult MadLibsGenerator2(string noun, string place, string adjective, string noun2)
        {
            StoryVariable myStoryVariable = new StoryVariable();

            myStoryVariable.SetNoun(noun);
            myStoryVariable.SetPlace(place);
            myStoryVariable.SetAdjective(adjective);
            myStoryVariable.SetNoun2(noun2);
            return(View(myStoryVariable));
        }
示例#2
0
        public ActionResult Story()
        {
            StoryVariable myStoryVariable = new StoryVariable();

            myStoryVariable.SetPerson1(Request.Query["person1"]);
            myStoryVariable.SetPerson2(Request.Query["person2"]);
            myStoryVariable.SetAnimal(Request.Query["animal"]);
            myStoryVariable.SetExclamation(Request.Query["exclamation"]);
            myStoryVariable.SetVerb(Request.Query["verb"]);
            myStoryVariable.SetNoun(Request.Query["noun"]);

            return(View("Story", myStoryVariable));
        }