示例#1
0
        public JsonResult Create(int id)
        {
            var status = true;
            var msg    = string.Empty;

            try
            {
                _service.CreateConnectReq(id);
            }
            catch (SimpleException ex)
            {
                status = false;
                msg    = ex.Message;
            }
            return(Json(new { status = status, errorMsg = msg }));
        }