Skip to content

Commit

Permalink
remove toLower (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
markti authored Mar 4, 2024
1 parent d749388 commit b0bad8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ public async Task<CreateResult> CreateCustomerAsync(Customer newCustomer)
}

var customer = await this.database.Customers
.FirstOrDefaultAsync(c => c.Email.ToLower() == newCustomer.Email.ToLower());
.FirstOrDefaultAsync(c => c.Email == newCustomer.Email);
if (customer == null)
{
customer = new Customer
{
Id = newCustomer.Id,
Email = newCustomer.Email,
Email = newCustomer.Email.ToLower(),
Name = newCustomer.Name,
Phone = newCustomer.Phone,
};
Expand Down

0 comments on commit b0bad8e

Please sign in to comment.