public IEnumerable <string> Get(string nextRoutePath)
        {
            var angularWebPage = new TheCustomizedWebPage();

            switch (nextRoutePath)
            {
            case "login":
            {
                angularWebPage.CurrentPath = "login";
                break;
            }

            case "home":
            {
                angularWebPage.CurrentPath = "home";
                break;
            }

            case "main":
            {
                angularWebPage.CurrentPath = "main";
                break;
            }

            case "buyer-renter":
            {
                angularWebPage.CurrentPath           = "buyer-renter";
                angularWebPage.Url                   = "BuyerRenterOrOwnerSeller";
                angularWebPage.QuestionTextToDisplay = "I wish to ";
                angularWebPage.BackNavButton         = "home";
                angularWebPage.NextNavButton         = "buyer-renter";
                angularWebPage.CurrentPath           = "buyer-renter";

                angularWebPage.AnswerButtons       = new string[] { "Rent", "Lease", "Buy", "Sell" };
                angularWebPage.AnswerTextToDisplay = "what's your answer? ";
                break;
            }

            default:
            {
                angularWebPage.CurrentPath = "";
                break;
            }
            }

            return(new string[] { angularWebPage.QuestionTextToDisplay,
                                  angularWebPage.BackNavButton,
                                  angularWebPage.NextNavButton,
                                  angularWebPage.AnswerTextToDisplay });
        }
示例#2
0
        public string[] Get(string nextRoutePath)
        {
            var myString = new string[] { "No", "It", "Did", "Not", "Work", "Out!" };

            System.Diagnostics.Debugger.Break();
            var angularWebPage = new TheCustomizedWebPage();

            if (nextRoutePath == AngularWebPage.home.ToString())
            {
                myString[0] = "Yes";
                myString[2] = "Worked";
                myString[3] = "Out";
                myString[4] = "In";
            }
            switch (nextRoutePath)
            {
            case "home":
            {
                angularWebPage.Url = nextRoutePath;
                myString[4]        = "SWITCH";
                break;
            }

            default:
            {
                myString[0] = "Defalut";
                myString[1] = "Worked";

                angularWebPage.Url = "page-not-found";
                break;
            }
            }

            Json(angularWebPage);

            return(myString);
        }