Exemple #1
0
        public AccountHolder Login(string username, string password)
        {
            var accountHolder = _accountHolderRepository.FindByEmail(username);

            if (accountHolder == null || accountHolder.Password != password)
            {
                return(null);
            }

            return(accountHolder);
        }
 public AccountHolder FindByEmail(string email)
 {
     return(_accountHolderRepository.FindByEmail(email));
 }