示例#1
0
        public async Task OnGetAsync()
        {
            if (!string.IsNullOrEmpty(Id))
            {
                var entity = await _sysRoleService.GetObjectAsync(_ => _.Id == Id);

                SysRoleDto = _sysRoleService.Mapper.Map <SysRoleDto>(entity);
            }
        }
示例#2
0
 public async Task OnGetAsync()
 {
     SysRoleInfo = await _sysRoleService.GetObjectAsync(_ => _.Id == RoleId);
 }