Exemplo n.º 1
0
        public async Task HandleAsync(AddUpdateRoleCommand command, CancellationToken cancellationToken = default)
        {
            await _roleRepository.AddOrUpdateAsync(command.Role);

            await _roleRepository.UnitOfWork.SaveChangesAsync(cancellationToken);
        }
Exemplo n.º 2
0
        public async Task HandleAsync(AddUpdateRoleCommand command)
        {
            await _roleRepository.AddOrUpdateAsync(command.Role);

            await _roleRepository.UnitOfWork.SaveChangesAsync();
        }