Exemplo n.º 1
0
        public Patient VerefyAuth(string loggin, string password)
        {
            Patient p = _patientBusinessLogic.GetAll().FirstOrDefault(x => x.Login.Equals(loggin));

            if (p == null)
            {
                return(null);
            }
            if (VerifyPassword(password, p.Hash) == true)
            {
                return(p);
            }
            return(null);
        }