public ActionResult DeletePSKU(string id) //AddPSKU { ComResult com = new ComResult(); try { var isok = CommService.DeletePSKU(Convert.ToInt32(id)); if (isok) { com.State = 1; com.Msg = "删除成功"; } else { com.State = 0; com.Msg = "删除失败"; } return(Json(com)); } catch (Exception ex) { com.State = 0; com.Msg = "删除失败,原因:" + ex.ToString(); return(Json(com)); } }