Skip to content

Commit d5bbed1

Browse files
refactor add product commandhandler.
1 parent 631a4c6 commit d5bbed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infrastructure/Persistance/CommandHandlers/Products/AddProductCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public AddProductCommandHandler(CleanArchWriteDbContext dbContext, ILogger<AddPr
2525
public async Task<int> Handle(AddProductCommand request, CancellationToken cancellationToken)
2626
{
2727
if (request is null)
28-
throw new ArgumentNullException(nameof(request));
28+
throw new InvalidNullInputException(nameof(request));
2929

3030
var existingProduct = await _dbContext.Set<Product>().FirstOrDefaultAsync(a => a.Name == request.Name, cancellationToken);
3131

0 commit comments

Comments
 (0)