Example #1
0
 public async Task HandleAsync(DomainAdderContext context)
 {
     context.UserId = DkmsUserContext.UserIdDefaultEmpty;
     foreach (var adder in _domainAdders)
     {
         await adder.HandleAsync(context);
     }
 }
Example #2
0
 public async Task HandleAsync(DomainAdderContext context)
 {
     if (!context.Values.Any())
     {
         return;
     }
     if (context.EntityId == Guid.Empty)
     {
         return;
     }
     foreach (var value in context.Values)
     {
         value.InstanceId = context.EntityId;
         await _dkmsUserRepository.AddAsync(context.UserId, value);
     }
 }
        public async Task HandleAsync(DomainAdderContext context)
        {
            var id = await _dkmsUserRepository.AddAsync(context.UserId, context.UserEntity);

            context.EntityId = id;
        }