Exemplo n.º 1
0
        public async Task <CreateUserPayload> CreateUserAsync([Service] IUserService context, UserInput input,
                                                              CancellationToken cancellationToken)
        {
            var user = input.Adapt <UserDto>();

            await context.CreateAsync(user, cancellationToken);

            return(new CreateUserPayload
            {
                User = user
            });
        }