private CanUseEmail ( |
||
customer | ||
string | ||
리턴 | bool |
private bool CanUseEmail(Customer customer, string email)
{
return !_customerRepository.Query().Any(c => c.Id != customer.Id && c.Email == email);
}