Form<Nomination> nominationForm = Form.form(Nomination.class);
nominationForm = nominationForm.fill(nomination);
return ok(newForm.render(nominationForm, User.findByEmail(request().username())));
}
public static Result edit(Long id) {
<BUG>Nomination nomination = Nomination.findById(id);
Form<Nomination> nominationForm = Form.form(Nomination.class);</BUG>
nominationForm = nominationForm.fill(nomination);
return ok(edit.render(nominationForm, User.findByEmail(request().username()), id));
}

Form<Nomination> nominationForm = Form.form(Nomination.class);
nominationForm = nominationForm.fill(nomination);
return ok(newForm.render(nominationForm, User.findByEmail(request().username())));
}
public static Result edit(Long id) {
Nomination nomination = Nomination.findById(id);
if (nomination == null) return notFound("There is no Nomination with ID " + id);
Form<Nomination> nominationForm = Form.form(Nomination.class);
nominationForm = nominationForm.fill(nomination);
return ok(edit.render(nominationForm, User.findByEmail(request().username()), id));
}
