public async Task HandleAsync(AddUpdateRoleCommand command, CancellationToken cancellationToken = default) { await _roleRepository.AddOrUpdateAsync(command.Role); await _roleRepository.UnitOfWork.SaveChangesAsync(cancellationToken); }
public async Task HandleAsync(AddUpdateRoleCommand command) { await _roleRepository.AddOrUpdateAsync(command.Role); await _roleRepository.UnitOfWork.SaveChangesAsync(); }