public JsonResult DeleteErrorCollection(Guid pkid) { ErrorCollectionbll bll = new ErrorCollectionbll(); string statuscode = "200"; string msg = ""; try { bll.DeleteErrorCollection(pkid); } catch (Exception) { statuscode = "500"; msg = "操作失败,请重试!"; } JsonResult jr = new JsonResult { Data = new { statuscode, msg } }; return(Json(jr, JsonRequestBehavior.AllowGet)); }