コード例 #1
0
        public ActionResult Puppy(string noun, string adjective, string animal, string adjective1, string animal1, string adjective2, string animal2, string adjective3, string animal3, string adjective4, string noun1, string noun2, string adjective5, string animal4, string noun3, string noun4, string noun5)
        {
            MadLibEntries entries = new MadLibEntries();

            entries.Noun       = noun;
            entries.Noun1      = noun;
            entries.Noun2      = noun2;
            entries.Noun3      = noun3;
            entries.Noun4      = noun4;
            entries.Noun5      = noun5;
            entries.Adjective  = adjective;
            entries.Adjective1 = adjective;
            entries.Adjective2 = adjective2;
            entries.Adjective3 = adjective3;
            entries.Adjective4 = adjective4;
            entries.Adjective5 = adjective5;
            entries.Animal     = animal;
            entries.Animal1    = animal;
            entries.Animal2    = animal2;
            entries.Animal3    = animal3;
            entries.Animal4    = animal4;


            return(View(entries));
        }
コード例 #2
0
        public ActionResult Story(string noun, string verb, string adjective, string animal, string persontwo, string personone)
        {
            MadLibEntries entries = new MadLibEntries();

            entries.Adjective = adjective;
            entries.Animal    = animal;
            entries.Noun      = noun;
            entries.Verb      = verb;
            entries.PersonTwo = persontwo;
            entries.PersonOne = personone;

            return(View(entries));
        }
コード例 #3
0
        public ActionResult Halloween(string noun, string verb_ing, string noun2, string noun3, string bodypart, string noun4, string verb_ing2, string bodypart_pl, string verb_ing3, string furniture, string noun_pl, string noun5, string bodypart2, string adverb, string bodypart3)
        {
            MadLibEntries entries = new MadLibEntries();

            entries.Noun        = noun;
            entries.Noun2       = noun2;
            entries.Noun3       = noun3;
            entries.Noun4       = noun4;
            entries.Noun5       = noun5;
            entries.Noun_pl     = noun_pl;
            entries.Verb_ing2   = verb_ing2;
            entries.Verb_ing    = verb_ing;
            entries.Verb_ing3   = verb_ing3;
            entries.Bodypart_pl = bodypart_pl;
            entries.Bodypart2   = bodypart2;
            entries.Bodypart3   = bodypart3;
            entries.Bodypart    = bodypart;
            entries.Adverb      = adverb;
            entries.Furniture   = furniture;

            return(View(entries));
        }