public bool CanLogin(string login, string password) { return(accountDao.CheckUser(login, GetPasswordsHash(password))); }
public bool CheckUser(string login, string password) { var passHash = GetPasswordsHash(password); return(_accountDao.CheckUser(login, passHash)); }