예제 #1
0
        public ActionResult MadlibTwo(string name, string nameTwo, string animal, string adjective, string exclamation)
        {
            MadlibVariable myMadlibVariableTwo = new MadlibVariable();

            myMadlibVariableTwo.SetName(name);
            myMadlibVariableTwo.SetNameTwo(nameTwo);
            myMadlibVariableTwo.SetAnimal(animal);
            myMadlibVariableTwo.SetAdjective(adjective);
            myMadlibVariableTwo.SetExclamation(exclamation);
            return(View(myMadlibVariableTwo));
        }
예제 #2
0
        public ActionResult MyMadlib()
        {
            MadlibVariable myMadLibVariable = new MadlibVariable();

            myMadLibVariable.SetPersonOne(Request.Query["person-one"]);
            myMadLibVariable.SetPersonTwo(Request.Query["person-two"]);
            myMadLibVariable.SetPlaceOne(Request.Query["place-one"]);
            myMadLibVariable.SetPlaceTwo(Request.Query["place-two"]);
            myMadLibVariable.SetObject(Request.Query["object-one"]);
            myMadLibVariable.SetAnimal(Request.Query["animal-one"]);
            myMadLibVariable.SetExclamation(Request.Query["exclamation-one"]);
            myMadLibVariable.SetActivity(Request.Query["activity-one"]);
            return(View("MyMadlib", myMadLibVariable));
        }