public void edit() {
this.result.include("smtp", this.smtpRepository.smtp());
}
public void update(Long id, String host, Integer port, Integer authenticate, Integer tls, String fromAddress,
String username, String password) {
<BUG>this.smtpRepository.update(new Smtp(id, host, port, authenticate, username, password, tls, fromAddress));
</BUG>
this.result.include("updated", true);
this.result.redirectTo(this).edit();
}

public void edit() {
this.result.include("smtp", this.smtpRepository.smtp());
}
public void update(Long id, String host, Integer port, Integer authenticate, Integer tls, String fromAddress,
String username, String password) {
this.smtpRepository.saveOrUpdate(new Smtp(id, host, port, authenticate, username, password, tls, fromAddress));
this.result.include("updated", true);
this.result.redirectTo(this).edit();
}
