Skip to content

Commit

Permalink
move training.db into entity
Browse files Browse the repository at this point in the history
  • Loading branch information
reyhanwidjaja committed Mar 21, 2024
1 parent a9dd596 commit b11e4df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion Services/Validators/Customer/CreateCustomerValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public CreateCustomerValidator(DBContext db)
.MustAsync(BeAvailableEmail).WithMessage("Email already exists.");
}

public async Task<bool> BeAvailableEmail(string email, CancellationToken cancellationToken)
private async Task<bool> BeAvailableEmail(string email, CancellationToken cancellationToken)
{
var isEmailExist = await _db.Customers.Where(Q => Q.Email == email)
.AsNoTracking()
Expand Down

0 comments on commit b11e4df

Please sign in to comment.