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