public static Account Login(string userName, string password) { string hashedPassword = Sha256Helper.GetHashSha256(password); Account acc = AuthenticateDAL.Login(userName, hashedPassword); if (acc != null) { AccountDAL.AddToLoginLog(acc); } return(acc); }