private string retriveSaltedHash() { User user = new User(txtUsername.Text); ECommerceBusiness ecb = new ECommerceBusiness { UserObj = user }; string takeSalt = ecb.RetriveSaltAgainstUser(); string takeHash; if (takeSalt != null) { takeHash = generateTempHashWithSalt(takeSalt); } else { takeHash = null; } return(takeHash); }