예제 #1
0
        public ResponseResult SaveUserResourceList(List <UserResourceEntity> entityList)
        {
            var result = ResponseResult.Default();

            try
            {
                var resourceService = new ResourceDataService();
                resourceService.SaveUserResourceList(entityList);

                result = ResponseResult.Success();
            }
            catch (System.Exception ex)
            {
                result = ResponseResult.Error(string.Format("保存用戶资源授权数据失败!{0}", ex.Message));
            }
            return(result);
        }