public void EditPassword(int id, string newPassword) { try { using (var db = new connectionsLinqDataContext()) { var encryptedpassword = PasswordSecurity.Encrypt("securityPassword", newPassword, false); db.EditPassword(id, encryptedpassword); } } catch (Exception) { return; } }