public JsonResult ShakeBall()
        {
            CrystalBall ball  = new CrystalBall();
            string      reply = ball.getResponse();

            return(Json(reply, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult ShakeBall()
        {
            //create an object of type "CrystalBall"
            CrystalBall ball  = new CrystalBall();
            string      reply = ball.getResponse();

            return(Json(reply, JsonRequestBehavior.AllowGet));
        }