示例#1
0
        public ActionResult Story(string name1)
        {
            StoryVariable newStory = new StoryVariable();

            newStory.Person = name1;
            return(View(newStory));
        }
示例#2
0
        public ActionResult Story(string noun, string verb, string name)
        {
            StoryVariable theStory = new StoryVariable();

            theStory.Noun = noun;
            theStory.Verb = verb;
            theStory.Name = name;
            return(View(theStory));
        }
        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));
        }
示例#4
0
		public ActionResult Story(string person1, string person2, string animal, string exclamation, string verb, string noun)
		{
			StoryVariable myStoryVariable = new StoryVariable();
			myStoryVariable.Person1 = person1;
			myStoryVariable.Person2 = person2;
			myStoryVariable.Animal = animal;
			myStoryVariable.Exclamation = exclamation;
			myStoryVariable.Verb = verb;
			myStoryVariable.Noun = noun;
			return View(myStoryVariable);
		}
示例#5
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));
        }
示例#6
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));
        }
 public ActionResult Story()
 {
     StoryVariable.AddStoryWord("color", Request.Form["color"]);
     StoryVariable.AddStoryWord("superlative", Request.Form["superlative"]);
     StoryVariable.AddStoryWord("adjective1", Request.Form["adjective1"]);
     StoryVariable.AddStoryWord("body-parts", Request.Form["body-parts"]);
     StoryVariable.AddStoryWord("body-part", Request.Form["body-part"]);
     StoryVariable.AddStoryWord("noun", Request.Form["noun"]);
     StoryVariable.AddStoryWord("animals", Request.Form["animals"]);
     StoryVariable.AddStoryWord("adjective2", Request.Form["adjective2"]);
     StoryVariable.AddStoryWord("adjective3", Request.Form["adjective3"]);
     StoryVariable.AddStoryWord("adjective4", Request.Form["adjective4"]);
     return(View(StoryVariable.GetStoryWords()));
 }
示例#8
0
        public ActionResult Story(string noun, string adjective, string adverb, string verb, string exclamation, string deviceNoun, string deviceRelatedVerb, string deviceRelatedNoun, string lengthExpression, string location)
        {
            StoryVariable myStory = new StoryVariable();

            myStory.Noun              = noun;
            myStory.Adjective         = adjective;
            myStory.Adverb            = adverb;
            myStory.Verb              = verb;
            myStory.Exclamation       = exclamation;
            myStory.DeviceNoun        = deviceNoun;
            myStory.DeviceRelatedVerb = deviceRelatedVerb;
            myStory.DeviceRelatedNoun = deviceRelatedNoun;
            myStory.LengthExpression  = lengthExpression;
            myStory.Location          = location;
            return(View(myStory));
        }
        public ActionResult Story(string nounOne, string personOne, string verbOne, string nounTwo, string holiday, string colorOne, string adjectiveOne, string colorTwo, string adjectiveTwo, string verbTwo, string vegetable, string verbThree, string personTwo, string verbFour, string verbFive, string colorThree)
        {
            StoryVariable myStoryVariable = new StoryVariable();

            myStoryVariable.NounOne      = nounOne;
            myStoryVariable.PersonOne    = personOne;
            myStoryVariable.VerbOne      = verbOne;
            myStoryVariable.NounTwo      = nounTwo;
            myStoryVariable.Holiday      = holiday;
            myStoryVariable.ColorOne     = colorOne;
            myStoryVariable.AdjectiveOne = adjectiveOne;
            myStoryVariable.ColorTwo     = colorTwo;
            myStoryVariable.AdjectiveTwo = adjectiveTwo;
            myStoryVariable.VerbTwo      = verbTwo;
            myStoryVariable.Vegetable    = vegetable;
            myStoryVariable.VerbThree    = verbThree;
            myStoryVariable.PersonTwo    = personTwo;
            myStoryVariable.VerbFour     = verbFour;
            myStoryVariable.VerbFive     = verbFive;
            myStoryVariable.ColorThree   = colorThree;
            return(View(myStoryVariable));
        }
示例#10
0
        public ActionResult Story(string verb1, string noun1, string adverb, string verbPast, string pluralNoun1, string pluralNoun2, string adjective1, string pluralNoun3, string verbIng, string color, string pluralNoun4, string noun2, string noun3, string interjection, string adjective2, string verb2, string adjective3, string adjective4)
        {
            StoryVariable myStoryVariable = new StoryVariable();

            myStoryVariable.Verb1        = verb1;
            myStoryVariable.Noun1        = noun1;
            myStoryVariable.Adverb       = adverb;
            myStoryVariable.VerbPast     = verbPast;
            myStoryVariable.PluralNoun1  = pluralNoun1;
            myStoryVariable.PluralNoun2  = pluralNoun2;
            myStoryVariable.Adjective1   = adjective1;
            myStoryVariable.PluralNoun3  = pluralNoun3;
            myStoryVariable.VerbIng      = verbIng;
            myStoryVariable.Color        = color;
            myStoryVariable.PluralNoun4  = pluralNoun4;
            myStoryVariable.Noun2        = noun2;
            myStoryVariable.Noun3        = noun3;
            myStoryVariable.Interjection = interjection;
            myStoryVariable.Adjective2   = adjective2;
            myStoryVariable.Verb2        = verb2;
            myStoryVariable.Adjective3   = adjective3;
            myStoryVariable.Adjective4   = adjective4;
            return(View(myStoryVariable));
        }