Exemplo n.º 1
0
  public static void delete(long id) {
    MJPastTraining pastTraining = MJPastTraining.findById(id);
    pastTraining.delete();

    flash.success("deleted");

    MJPastTrainings.show(pastTraining.resident.id);
  }
Exemplo n.º 2
0
  public static void save(MJPastTraining pastTraining) {
    pastTraining.save();
    flash.success("saved");

    MJPastTrainings.show(pastTraining.resident.id);
  }