diff --git a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs index 54922ed..2b3202d 100644 --- a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs +++ b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs @@ -28,7 +28,7 @@ public class ReadRecActionQueryHandler(IRepository repo, IMapper { var actions = await repo.Where(x => x.ProfileId == request.ProfileId).ToListAsync(cancel); - if(actions.Count != 0) + if(actions.Count == 0) throw new NotFoundException($"No actions found for the profile {request.ProfileId}."); return mapper.Map>(actions);