Esempio n. 1
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));
        }