コード例 #1
0
        public async Task <IEnumerable <PermissionModel> > GetPermissions(Guid userId)
        {
            var permissions = await _rolePermissionRepository.GetByUser(userId);

            return(permissions.Select(p => BusinessMapper.Map <PermissionModel>(p.Permission)));
        }