Kooboo.Commerce.Customers.CustomerService.CanUseEmail C# (CSharp) Method

CanUseEmail() private method

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