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

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

            await _roleRepository.UnitOfWork.SaveChangesAsync();
        }