コード例 #1
0
            protected override async Task <IEnumerable <UserDto> > Handle(RequestContext context, GetEmployeeListQuery request, CancellationToken cancellationToken)
            {
                var result = (await userManager.GetEmployeeList(context.CurrentUser.UserId, true, cancellationToken)).ToList();

                return(result.Select(r => mapper.Map <UserDto>(r)));
            }