Exemplo n.º 1
0
        void Handle(Input.ChooseFood action)
        {
            switch (action.Value)
            {
            case "Fruit":
                this.MorphUrl = "/UniformDocs/Redirect/apple";
                break;

            case "Vegetable":
                this.MorphUrl = "/UniformDocs/Redirect/carrot";
                break;

            case "Bread":
                this.MorphUrl = "/UniformDocs/Redirect/baguette";
                break;
            }
        }
Exemplo n.º 2
0
        void Handle(Input.ChooseFood Action)
        {
            switch (Action.Value)
            {
            case "Fruit":
                this.MorphUrl = "/KitchenSink/Redirect/apple";
                break;

            case "Vegetable":
                this.MorphUrl = "/KitchenSink/Redirect/carrot";
                break;

            case "Bread":
                this.MorphUrl = "/KitchenSink/Redirect/baguette";
                break;
            }
        }