コード例 #1
0
        public HelloObject GetModelObj(string id)
        {
            HelloObject helloObject = new HelloObject();

            if (int.Parse(id) > 0)
            {
                helloObject.helloBool    = true;
                helloObject.helloMessage = "Hello Bool is true!";
            }
            else
            {
                helloObject.helloBool    = false;
                helloObject.helloMessage = "Hello Bool is false.";
            }
            return(helloObject);
        }
コード例 #2
0
        public HelloObject GetModelObject(string id)
        {
            HelloObject helloObject = new HelloObject();

            if (Int32.Parse(id) > 0)
            {
                helloObject.happyHello   = true;
                helloObject.helloMessage = "Shake and bake";
            }
            else
            {
                helloObject.happyHello   = false;
                helloObject.helloMessage = "Hello Mellow";
            }

            return(helloObject);
        }
コード例 #3
0
        public HelloObject GetModelObject(string id)
        {
            HelloObject helloObject = new HelloObject();

            if (Int32.Parse(id) > 0)
            {
                helloObject.happyHello   = true;
                helloObject.helloMessage = "Life is good :)";
            }
            else
            {
                helloObject.happyHello   = false;
                helloObject.helloMessage = "Life is bad :(";
            }

            return(helloObject);
        }
コード例 #4
0
        public HelloObject GetModelObject(string id)
        {
            HelloObject helloObject = new HelloObject();

            if (Int32.Parse(id) > 0)
            {
                helloObject.happyHello   = true;
                helloObject.helloMessage = "Have a great day!";
            }
            else
            {
                helloObject.happyHello   = false;
                helloObject.helloMessage = "Have a bad day!";
            }

            return(helloObject);
        }