public JsonResult DeleteGroupMenu(string ID) { string result, resultC; try { DataSet ds = new DataSet(); int iID = string.IsNullOrEmpty(ID) ? 0 : Int32.Parse(ID.ToString()); int UserID = Session[CConfig.SESSION_USERID].ToString() == "" ? 1 : Convert.ToInt32(Session[CConfig.SESSION_USERID]); ds = data.DeleteGroupMenuRel(iID, UserID); if (ds.Tables[0].Rows.Count > 0) { result = ds.Tables[0].Rows[0][0].ToString(); resultC = ds.Tables[0].Rows[0][1].ToString(); } else { result = "Error: Xóa Menu không thành công"; resultC = "-1"; } } catch (Exception ex) { result = "Error: Không thêm được menu vào group"; resultC = ""; CLog.LogError(CBase.GetDeepCaller(), CBase.GetDetailError(ex)); } return(Json(new { mess = result, code = resultC }, JsonRequestBehavior.AllowGet)); }