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