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); }
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); }
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); }
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); }