This commit is contained in:
@@ -65,7 +65,7 @@ public static class CreateCar
|
||||
UserId = userId
|
||||
};
|
||||
|
||||
var isDuplicate = await dbContext.Cars
|
||||
bool isDuplicate = await dbContext.Cars
|
||||
.AnyAsync(x => x.Name.ToUpper() == request.Name.ToUpper(), cancellationToken);
|
||||
|
||||
if (isDuplicate)
|
||||
|
||||
Reference in New Issue
Block a user