Browse Source

Update EventAppService.cs

pull/79/head
berkansasmaz 5 years ago
parent
commit
eb13cb7c67
No known key found for this signature in database GPG Key ID: 884D815C3F32BE00
  1. 4
      src/EventHub.Application/Events/EventAppService.cs

4
src/EventHub.Application/Events/EventAppService.cs

@ -439,8 +439,8 @@ namespace EventHub.Events
{ {
foreach (var userName in speakerUserNames) foreach (var userName in speakerUserNames)
{ {
var user = await _userRepository.FindAsync(x => x.UserName == userName.Trim()); var user = await _userRepository.AnyAsync(x => x.UserName == userName.Trim());
if (user is null) if (!user)
{ {
throw new BusinessException(EventHubErrorCodes.UserNotFound) throw new BusinessException(EventHubErrorCodes.UserNotFound)
.WithData("UserName", userName); .WithData("UserName", userName);

Loading…
Cancel
Save