コード例 #1
0
        public ActionResult GetSecondModule(int firstid, int arid)
        {
            ShowResultModel srm = new ShowResultModel();

            try
            {
                srm.TipMsg = _adminRoleService.GetCurrRoleSecondModule(arid, firstid);
                if (srm.TipMsg.Length == 0)
                {
                    srm.TipMsg = "无数据";
                }
                srm.IsSuccess = true;
            }
            catch (InvalidOperationException ex)
            {
                srm.TipMsg = ex.Message;
            }
            catch (Exception ex)
            {
                srm.TipMsg = ex.Message;
                LoggerHelper.Log("【获取二级菜单(角色)】出错,系统操作管理员:" + _currentAdmin.AdminInfo.SAName + ",错误原因:" + (ex.InnerException == null ? ex.Message : ex.InnerException.ToString()));
            }
            return(Json(srm, JsonRequestBehavior.AllowGet));
        }