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 ViewMadLib()
        {
            StoryVariable myStoryVariable = new StoryVariable();

            myStoryVariable.SetNoun1(Request.Query["first-noun"]);
            myStoryVariable.SetVerb1(Request.Query["first-verb"]);
            myStoryVariable.SetAdverb(Request.Query["first-adverb"]);
            myStoryVariable.SetVerb2(Request.Query["second-verb"]);
            myStoryVariable.SetNoun2(Request.Query["second-noun"]);
            return(View(myStoryVariable));
        }