コード例 #1
0
        /// <summary>
        /// 得到一条角色信息
        /// </summary>
        /// <returns></returns>
        public ActionResult GetRole(int id)
        {
            ResultData <RoleResultDTO> result = new ResultData <RoleResultDTO>();

            try
            {
                result = UserAuthorityProvider.GetRole(id);
            }
            catch (Exception ex)
            {
                result.SubmitResult = false;
                result.Message      = ex.Message;
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }