コード例 #1
0
        public JsonResult GetUserInfo(int id)
        {
            UserIfo model = InvUserData.UserData(id);

            if (model != null)
            {
                return(Json(new { status = true, data = model }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new { status = false, msg = "No data found!" }, JsonRequestBehavior.AllowGet));
        }